On Mon, 21 Jun 2010, Stefano Sabatini wrote:
> On date Friday 2010-06-18 19:21:55 +0300, Tor Lillqvist wrote:
>>> Note that the signature of swprintf according to my book is:
>> Why are you looking for the swprintf() documentation from some
>> presumably irrelevant book, when you have the relevant prototype in
>> mingw's <stdio.h>, even with a helpful comment:
>> /* These differ from the ISO C prototypes, which have a maxlen
>> parameter (like snprintf). */
>>> What's going wrong?
>> You assuming a relatively obscure function like swprintf() is the same
>> in two unrelated C libraries just because it has the same name?
> I assume a standardized function like swprintf() to be the same in two
> different C libraries.
> In other words, I can't see why MinGW is not following ISO C.
MinGW uses msvcrt as C library (at runtime), because its aim is to produce
native programs / libraries on Windows. So, it declares what is found in
If the signature is different in other "more standard" libc, it's
Microsoft's fault, not mingw guys' :-) Microsoft win32 API follows no
standard. It's not C89 compliant, nor C99, nor POSIX, nor BSD, etc...