On 1/31/07, Tomasz Jankowski <[EMAIL PROTECTED]> wrote: > Please don't say me, that I was so stupid all the time :| Let say that we > have such function: > > static void > maman_ibaz_base_init (gpointer g_iface) > { > static gboolean initialized = FALSE; > > if (!initialized) { > /* create interface signals here. */ > initialized = TRUE; > } > } > > I'm quite young programmer (it's my hobby only), but I'm almost sure, that > all variables declared inside function are destroyed when function execution > if finished. Does 'static' keyword changes this behavior?!
That is exactly what "static" does: http://www.phim.unibe.ch/comp_doc/c_manual/C/CONCEPT/storage_class.html#static -D _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list