mysnprintf.h
来自「功能强大的ftp服务器源代码」· C头文件 代码 · 共 32 行
H
32 行
#ifndef __MYSNPRINTF_H__#define __MYSNPRINTF_H__ 1int workaround_snprintf(char *str, size_t size, const char *format, ...);#ifndef HAVE_SNPRINTF# include "fakesnprintf.h"#endif#ifdef CONF_SNPRINTF_TYPE# if CONF_SNPRINTF_TYPE > 0# define SNPRINTF_C99 1# else# define SNPRINTF_OLD 1# endif#else# define SNPRINTF_C99 2#endif#ifdef SNPRINTF_IS_NOT_BUGGY/* SNCHECK() returns 0 if a *snprintf() call was safe */# ifdef SNPRINTF_C99# define SNCHECK(CALL, SIZE) ((CALL) >= ((int) (SIZE)))# else# define SNCHECK(CALL, SIZE) ((CALL) < 0)# endif#else/* Slow wrapper, but it works around totally buggy libc's */# define SNCHECK(CALL, SIZE) (workaround_ ## CALL)#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?