On Tue, Sep 9, 2008 at 09:38:22 +0200, Fabian Greffrath wrote: > Reinhard Tartler schrieb: >> In order to ensure that no matter how often that function is called, the >> code below that if is executed exatly once. Think Singleton-Pattern. > > Will the code be executed more than once if initialize it with "static > int inited=0;" (which is the proposed fix)? I fear so... > No. The variable is static, it's initialized only once. (But then, the proposed 'fix' looks like a no-op to me.)
Cheers, Julien -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]