Thread View: comp.std.c++
2 messages
2 total messages
Started by Mark Harrison
Tue, 26 Jan 1993 20:21
sprintf return value
Author: Mark Harrison
Date: Tue, 26 Jan 1993 20:21
Date: Tue, 26 Jan 1993 20:21
3 lines
506 bytes
506 bytes
Will the C++ standard specify the return type of sprintf()? -- Mark Harrison, mharriso@dsccc.com
Re: sprintf return value
Author: Steve Clamage
Date: Thu, 28 Jan 1993 19:07
Date: Thu, 28 Jan 1993 19:07
17 lines
902 bytes
902 bytes
mharriso@digi.lonestar.org (Mark Harrison) writes: >Will the C++ standard specify the return type of sprintf()? Yes. The C++ Standard will incorporate the library portion of the ANSI/ISO C standard (with some minor modifications): int sprintf(char* buf, const char* fmt, ...); It returns the number of characters stored in buf, like the rest of the printf family. Some C libraries have sprintf return buf (a char*), for reasons I have never understood. This is neither standard C nor standard C++. -- Steve Clamage, TauMetric Corp, steve@taumet.com
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