add directory study
This commit is contained in:
19
study/linux-travel/minix-386/estdio21.tar/estdio21/printf.c
Normal file
19
study/linux-travel/minix-386/estdio21.tar/estdio21/printf.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/* p r i n t f */
|
||||
|
||||
#include "stdiolib.h"
|
||||
|
||||
/*LINTLIBRARY*/
|
||||
/*VARARGS1*/
|
||||
/*ARGSUSED*/
|
||||
|
||||
int printf F1V(CONST char *, fmt,
|
||||
|
||||
{
|
||||
register VA_LIST, arg, /* argument vector */
|
||||
register int v; /* return value */
|
||||
|
||||
VA_START(arg, fmt);)
|
||||
v = __vfprintf(stdout, fmt, arg);
|
||||
VA_END(arg);
|
||||
return v;
|
||||
}
|
||||
Reference in New Issue
Block a user