NetcanOS
Netcan OS is an operation system for x86 PCs, for learning how os works.
函数
stdio.h 文件参考
#include <stdarg.h>

浏览源代码.

函数

int vsprintf (char *str, const char *fmt, va_list arg)
 格式化输出字符串。 更多...
 
int printf (const char *fmt,...)
 格式化输出。 更多...
 

函数说明

◆ printf()

int printf ( const char *  fmt,
  ... 
)

格式化输出。

参数
fmt格式
...参数列表
返回
成功就返回输出字符的字符个数,否则返回负数

◆ vsprintf()

int vsprintf ( char *  str,
const char *  fmt,
va_list  args 
)

格式化输出字符串。

参数
str输出字符串缓冲区
fmt格式
args参数列表
返回
成功就返回输出字符的字符个数,否则返回负数