Thread View: comp.lang.c.moderated
1 messages
1 total messages
Started by Richard Browne
Sun, 21 Apr 1996 17:12
C9X proposal for snprintf
Author: Richard Browne
Date: Sun, 21 Apr 1996 17:12
Date: Sun, 21 Apr 1996 17:12
17 lines
1194 bytes
1194 bytes
This message is a call for interest/support in a proposal to C9X for the inclusion of an 'snprintf' function in the C standard. Many compilers already provide this function, but not all. For those who aren't aware, the sprintf 'problem' is similar to the famous gets, where the functions do not perform overflow checking on the user supplied buffer.. leading to the possibility of random memory overwrites and corruption. snprintf is analogous to sprintf. The difference being that snprintf takes an extra parameter that specifies the sizeof the format conversion buffer, and can thus guarantee that the buffer will never overflow. If you support this proposal, please respond here ot to direct to my email address. Richard Browne. richb@sentor.com.au
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads