storage class for block scope variable

How can I make block scope variable with static specifier?
I would like to make variable 'result' with static specifier. But I couldn't it.
For example,
int8_t sumInt8(int8_T intput1, int8_T intput2)
{
static int8_T result;
result = intput1 + input2;
return result;
}
Which storage class can declare it with static specifier?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2019년 12월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by