On Sun, 12 Oct 2008, Ivan Shmakov wrote:

        Doesn't C require an explicit initial value for `initialized'
        here?

Well, as it is a static variable it will be initialised to zero.


$ nl -ba grass-trunk-r33586/lib/htmldriver/Driver.c
...
   20   const struct driver *HTML_Driver(void)
   21   {
   22       static struct driver drv;
   23       static int initialized;
   24
   25       if (initialized)
   26           return &drv;
...
$
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev


_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to