ut1_kprintf.c

来自「小型操作系统,以VC为开发环境,需要boachs调试」· C语言 代码 · 共 55 行

C
55
字号
/***************************************************************************
**     File name   : ut1_kprintf.c
**     Author      : x.cheng
**     Create date :
**
**	   Comment:
**        kprintf() defined in this file...
**
**     Revisions:
**     $Log: ut1_kprintf.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 "..\..\Inc\vga.h"
#include "..\inc\def_util.h"

/************************************************************
*************************************************************
**      Function Name:			kprintf
**      Author:                 x.cheng
**
**      Comment:
**			printf function
**
**      List of parameters:
**			va_list
**
**      Return value:   
**          no
**
**      Revisions:
**
*************************************************************
*************************************************************/
int kprintf(const char *fmt, ...)
{
	va_list args;
	int iRtc;
	BYTE aucBuffer[1024];

	va_start(args, fmt);
	iRtc = iVSPrintf(aucBuffer, fmt, args)
	va_end(args);
	vPutString((const char *)aucBuffer);

	return iRtc;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?