📄 ut3_ksprintf.c
字号:
/***************************************************************************
** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -