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

📄 _sprintf.c

📁 一个c语言写做的编译器的源码
💻 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 + -