Re: gnome developer docs - not sgml




> Another instance was the snprintf() stuff.  I finally hooked in a library
> which provided it because various things didn't cope properly with systems
> that didn't have it (most commonly, something linked against -ldb would
> fall over during the link because db provides its own version) only to find
> that various configure scripts wouldn't let me do *that* while testing for
> e.g. glib.  

The right approach for snprintf is to use g_vsnprintf.  If you spot a
locationw here the code uses snprintf, let us know so that we can
replace that with g_vsnprintf (which, btw, has a lighter
implementation than the OpenBSD implementation of it).

Miguel.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]