iphlpapi: Only call res_init() once per process

Alexandre Julliard julliard at winehq.org
Thu Apr 19 16:34:01 CDT 2007

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.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list