Open gioamato opened 6 years ago
Since, snprintf() is now officially supported. We should never #define it. Doing it will overshadow new snprintf() function defined in stdio.h.
To restrict that, this is added in stdio.h:
Hence, the code doesn't compile.
Since, snprintf() is now officially supported. We should never #define it. Doing it will overshadow new snprintf() function defined in stdio.h.
To restrict that, this is added in stdio.h:
ifdef snprintf
error: Macro definition of snprintf conflicts with Standard Library function declaration”
endif
Hence, the code doesn't compile.