CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: static functions



Al local static can be initialized and it will only be done once ( the
first time it is executed ) eg.

void foo( void )
{
	static int InstanceCount  =  0;
	
	++InstanceCount;
	
	...
}	

L8tr
Neo
Games Developer
VWV Studios

W Komornicki's Home Page | Main Index | Thread Index