[cs631apue] questions about openmax.c

zding4 zding4 at stevens.edu
Tue Sep 16 18:01:59 EDT 2014


Hi everyone:

Sorry if you guys think this may be a trivial question
When I read the source code of openmax.c
It defines a static int variable openmax

----------------------------------------
#ifdef OPEN_MAX
	static int openmax = OPEN_MAX;
#else
	static int openmax = 0;
#endif
----------------------------------------

Why is it the "static int"?





More information about the cs631apue mailing list