From: JonY <10...@gm...> - 2008-09-05 12:04:59
|
Greg Chicares wrote: > On 2008-09-05 10:46Z, JonY wrote: >> Erik de Castro Lopo wrote: >>> JonY wrote: >>> >>>> Some prototype definitions like strcasecmp and _stricmp are missing when >>>> using gcc under C99 mode. >>> Is strcasecmp C99? I didn't think it was. > > C99 mentions neither of those functions. > >> So glibc is at fault? >> Under Linux: >> # gcc -std=c99 -E /usr/include/strings.h |grep strcasecmp >> extern int strcasecmp (__const char *__s1, __const char *__s2) > > "strings.h" is a POSIX header: > http://www.opengroup.org/onlinepubs/009695399/basedefs/strings.h.html > C99 isn't POSIX; it mentions no such header. > I was confused when I saw strings.h from MinGW including string.h only. >>>> Does the msvcrt implementation conform to C99? >>> No. For instance the msvcrt implementation of snprintf fails compliance >>> in a couple of important ways. >> Thanks, some links to read up on would be nice. > > Many snprintf() problem reports can be found here: > http://search.gmane.org/?query=snprintf+mingw > Wow, how did I miss something that obvious? Many thanks. > The next release of the MinGW runtime package includes a > reimplementation of snprintf() that lacks these problems. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK& win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |