4 /* ===================================================================
8 * W. Richard Stevens, 'UNIX Network Programming', Vol 1, 2nd Edition,
11 * Mark Gates <mgates@nlanr.net>
14 * to use this prototype, make sure HAVE_SNPRINTF is not defined
16 * =================================================================== */
19 * Throughout the book I use snprintf() because it's safer than sprintf().
20 * But as of the time of this writing, not all systems provide this
21 * function. The function below should only be built on those systems
22 * that do not provide a real snprintf().
23 * The function below just acts like sprintf(); it is not safe, but it
24 * tries to detect overflow.
33 int snprintf(char *buf, size_t size, const char *fmt, ...);
36 } /* end extern "C" */
39 #endif /* HAVE_SNPRINTF */
40 #endif /* SNPRINTF_H */