Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

safe sprintf snprintf(3) considered harmful

Name: Anonymous 2008-09-30 14:21

You should use int _snprintf_s(char *buffer, size_t sizeOfBuffer, size_t count, const char *format,... ); instead.

Name: Anonymous 2008-10-02 0:27

>>40
Correct, >>32 is malformed.

Name: Anonymous 2008-10-02 6:14

>>41
Ah, yeah. g++ starts complaining about it with -Wall.

Name: Anonymous 2008-10-02 13:54

Why does g++ not default to -Wall?

Name: Anonymous 2008-10-02 16:14

>>43
Who is John Galt?

Name: Anonymous 2008-10-02 16:19

>>43
Because EXPERT is the default programmer and he does not need nitpicky warnings.

Name: Anonymous 2009-09-17 15:19

Lain.

Name: Anonymous 2011-02-03 8:17

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List