iphlpapi: Only call res_init() once per process

Kai Blin kai.blin at gmail.com
Fri Apr 20 00:40:07 CDT 2007


On Thursday 19 April 2007 23:34, Alexandre Julliard wrote:
> James Liggett <jrliggett at cox.net> writes:
> > Actually I think in this case they would be. Most compilers do this by
> > default IIRC (if you'd like to see for yourself, try the attached test.)
> > Still, I think it would be prudent to put the 0 in there anyway, sine I
> > don't think there's a standard that says compilers have to do this so
> > there could potentially be portability problems.
>
> There are no potential problems at all, statics are _always_
> initialized to 0 in C.

And another new thing learned about C. Thanks for the explanations.

Kai

-- 
Kai Blin, <kai Dot blin At gmail Dot com>
WorldForge developer    http://www.worldforge.org/
Wine developer          http://wiki.winehq.org/KaiBlin/
--
Will code for cotton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20070420/f206e68d/attachment.pgp


More information about the wine-devel mailing list