xv6-simplified 0.1
简化版xv6
Loading...
Searching...
No Matches
Functions
printf.c File Reference
#include "include/types.h"
#include "include/stat.h"
#include "user/user.h"
#include <stdarg.h>
Include dependency graph for printf.c:

Functions

void vprintf (int fd, const char *fmt, va_list ap)
 向文件描述符fd输出标准格式字符串 仅支持d, l, x, p, s, c, %%
 
void fprintf (int fd, const char *fmt,...)
 向文件描述符fd输出标准格式字符串
 
void printf (const char *fmt,...)
 在终端打印标准格式字符串
 

Function Documentation

◆ fprintf()

void fprintf ( int  fd,
const char *  fmt,
  ... 
)

向文件描述符fd输出标准格式字符串

Parameters
fd文件描述符
fmt标准格式字符串
...可变参数列表
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printf()

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

在终端打印标准格式字符串

Parameters
fmt标准格式字符串
...可变参数列表
Here is the call graph for this function:

◆ vprintf()

void vprintf ( int  fd,
const char *  fmt,
va_list  ap 
)

向文件描述符fd输出标准格式字符串 仅支持d, l, x, p, s, c, %%

Parameters
fd文件描述符
fmt标准格式字符串
ap可变参数列表
Here is the caller graph for this function: