c - MinGW printf padding ignored with c89/c99/c11 -


trying build+run simple c program in mingw produces strange results

#include <stdio.h> void main() {     printf("%03d", 7); }; 

if build standard-c compliance flags (-std=c89/99/11) padding ignored:

c:\>gcc -std=c11 a.c c:\>a 7 

whereas in regular gnu c mode works fine:

c:\>gcc a.c c:\>a 007 

is bug in mingw? have missed something? or padding specifier not standard c feature?

for reference, here's output of gcc -v on system.


as suggested 2501, best workaround instead use mingw-w64, separate project mingw. can still produce 32-bit binaries, despite "w64" label.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -