Total number of local static variables in function
This metric provides the number of local static variables in a function.
expand all
void func(void) { static int var_1 = 0; int var_2; }
In this example, the number of static variables in func is 1. For examples of different types of variables, see Number of Local Non-Static Variables.
func
Number of Local Non-Static Variables
LOCAL_STATIC_VARS