XINU
Functions
fprintf.c File Reference
#include <xinu.h>
#include <stdarg.h>
Include dependency graph for fprintf.c:

Go to the source code of this file.

Functions

void _fdoprnt (char *, va_list, int(*)(did32, char), int)
 
int fprintf (int dev, char *fmt,...)
 

Function Documentation

◆ _fdoprnt()

void _fdoprnt ( char *  ,
va_list  ,
int(*)(did32, char)  ,
int   
)

Referenced by fprintf().

Here is the caller graph for this function:

◆ fprintf()

int fprintf ( int  dev,
char *  fmt,
  ... 
)

Definition at line 14 of file fprintf.c.

References _fdoprnt(), putc(), va_end, and va_start.

Referenced by addattr(), addton(), devisid(), devonid(), getattrid(), getutime(), hexdump(), hexdump_print(), if(), main(), newdev(), newtype(), shell(), xsh_cat(), xsh_clear(), xsh_date(), xsh_devdump(), xsh_help(), xsh_kill(), xsh_ls(), xsh_memdump(), xsh_memstat(), xsh_netinfo(), xsh_ping(), xsh_ps(), xsh_sleep(), xsh_udpdump(), xsh_udpecho(), xsh_udpeserver(), xsh_uptime(), and yyerror().

19 {
20  va_list ap;
21  int putc(did32, char);
22 
23  va_start(ap, fmt);
24  _fdoprnt(fmt, ap, putc, dev);
25  va_end(ap);
26 
27  return 0;
28 }
void _fdoprnt(char *, va_list, int(*)(did32, char), int)
#define va_start(last, va)
va_list型を初期化し、可変長引数の使用を開始する。
Definition: stdarg.h:25
syscall putc(did32, char)
デバイスへ文字1Byteを送信する。
Definition: putc.c:18
#define va_end(va)
可変長引数の処理を終了する。
Definition: stdarg.h:42
int32 did32
デバイスID
Definition: kernel.h:28
__builtin_va_list va_list
可変個の実引数を扱うための情報を保持するための型(__builtin_va_listはGCCに定義された型) ...
Definition: stdarg.h:7
Here is the call graph for this function:
Here is the caller graph for this function: