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

📄 ut3_ksprintf.c

📁 小型操作系统,以VC为开发环境,需要boachs调试
💻 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 + -