* Init modules
@ 1998-08-26 2:50 Saffi Hartal
0 siblings, 0 replies; only message in thread
From: Saffi Hartal @ 1998-08-26 2:50 UTC (permalink / raw)
To: c++-embedded
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 469 bytes --]
I sometimes use that way to init my modules.
 if I want to init the arrays and variables i use (i
don't always create a class which supply the interface cause the people around
me use C routines instead of C++ ), what do you think about it.
Â
static int
init_module(void) { Â Â Â /* code to init the module
*/ Â Â Â return(0); }
Â
static int init_var=init_module();
Â
          Â
   Saffi
Â
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-08-26 2:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-26 2:50 Init modules Saffi Hartal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).