Skip to content

Conversation

@gioamato
Copy link

@gioamato gioamato commented Mar 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant