ut3_ksprintf.c
来自「小型操作系统,以VC为开发环境,需要boachs调试」· C语言 代码 · 共 57 行
C
57 行
/***************************************************************************
** File name : ut3_ksprintf.c
** Author : x.cheng
** Create date :
**
** Comment:
** ksprintf() defined in this file...
**
** Revisions:
** $Log: ut3_ksprintf.c,v $
** Revision 1.1.1.1 2005/07/27 06:53:15 x.cheng
** add into repositories
**
**
***************************************************************************/
#include "const.h"
#include "type.h"
#include "stdarg.h"
#include "string.h"
#include "..\inc\def_util.h"
/************************************************************
*************************************************************
** Function Name: ksprintf
** Author: x.cheng
**
** Comment:
** sprintf function
**
** List of parameters:
** va_list
**
** Return value:
** no
**
** Revisions:
**
*************************************************************
*************************************************************/
int ksprintf(char *szDest, const char *fmt, ...)
{
va_list args;
int iRtc;
BYTE aucBuffer[1024];
va_start(args, fmt);
iRtc = iVSPrintf(aucBuffer, fmt, args)
va_end(args);
strcpy(szDest, (const char *)aucBuffer);
return iRtc;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?