📄 _sprintf.c
字号:
/*@A (C) 1992 Allen I. Holub */
/* The ANSI sprintf() returns the size of the target string. Provide an
* ANSI-compatible version for UNIX. (It's called _sprintf to avoid possible
* redefinition conflicts with declarations in header files).
*/
#include <stdarg.h>
int _sprintf( buf, fmt VA_LIST )
char *buf, *fmt;
{
va_list args;
va_start( args, fmt );
vsprintf( buf, fmt, args ); /* defined in /src/compiler/lib/prnt.c */
return( strlen( buf ) );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -