⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snprintf.h

📁 用来测试端到端的网络带宽
💻 H
字号:
#ifndef SNPRINTF_H#define SNPRINTF_H/* =================================================================== * snprintf.h * * This is from * W. Richard Stevens, 'UNIX Network Programming', Vol 1, 2nd Edition, *   Prentice Hall, 1998. * * Mark Gates <mgates@nlanr.net> * July 1998 * * to use this prototype, make sure HAVE_SNPRINTF is not defined * * =================================================================== *//* * Throughout the book I use snprintf() because it's safer than sprintf(). * But as of the time of this writing, not all systems provide this * function.  The function below should only be built on those systems * that do not provide a real snprintf(). * The function below just acts like sprintf(); it is not safe, but it * tries to detect overflow. */#ifndef HAVE_SNPRINTF    #ifdef __cplusplusextern "C" {#endifint snprintf(char *buf, size_t size, const char *fmt, ...);#ifdef __cplusplus} /* end extern "C" */    #endif#endif /* HAVE_SNPRINTF */#endif /* SNPRINTF_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -