corrected a bit

This commit is contained in:
ceriel 1988-09-30 09:36:26 +00:00
parent 19698499d6
commit 9c8e5b9217
4 changed files with 17 additions and 9 deletions

View file

@ -8,7 +8,7 @@
#include <system.h> #include <system.h>
#include "param.h" #include "param.h"
/*VARARGS1*/ /*VARARGS*/
fprint(va_alist) fprint(va_alist)
va_dcl va_dcl
{ {

View file

@ -100,12 +100,20 @@ to be defined as follows:
.br .br
.RS .RS
.nf .nf
/*VARARGS1*/ #include <varargs.h>
print(fmt, argv) #include <system.h>
char *fmt;
int argv; /*VARARGS*/
print(va_alist)
va_dcl
{ {
doprnt(STDOUT, fmt, &argv); char *fmt;
va_list args;
va_start(args);
fmt = va_arg(args, char *);
doprnt(STDOUT, fmt, args);
va_end(args);
} }
.fi .fi
.RE .RE
@ -123,4 +131,4 @@ The maximum length of the string to be printed is 1024 characters.
.SH SEE ALSO .SH SEE ALSO
printf(3) printf(3)
.SH AUTHOR .SH AUTHOR
Erik Baalbergen <erikb@vu44.UUCP> Erik Baalbergen <erikb@cs.vu.nl>

View file

@ -8,7 +8,7 @@
#include <system.h> #include <system.h>
#include "param.h" #include "param.h"
/*VARARGS1*/ /*VARARGS*/
print(va_alist) print(va_alist)
va_dcl va_dcl
{ {

View file

@ -8,7 +8,7 @@
#include <system.h> #include <system.h>
#include "param.h" #include "param.h"
/*VARARGS1*/ /*VARARGS*/
char * char *
sprint(va_alist) sprint(va_alist)
va_dcl va_dcl