Re: [Mingw-w64-public] printf("%zu") format warnings

2018-01-25 Thread Kai Tietz via Mingw-w64-public
Hello, it is a common, but nevertheless wrong assumption, that %z formatter is compatible for different runtimes. Especially msvcrt is all but C99 compatible. If you have enabled the use our C99 compatible printf/scanf implementation via the __USE_MINGW_ANSI_STDIO macro, then you will see that %

[Mingw-w64-public] printf("%zu") format warnings

2018-01-25 Thread lemonsqueeze
Hi, I'm looking for a portable way to print a size_t. I thought "%zu" was the recommended way to do it, but I'm getting unknown format warnings when printf() is called with "%zu". I guess i can use something like %llu instead but shouldn't this work in C99 mode really ? (must be missing somet