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 "param.h"
/*VARARGS1*/
/*VARARGS*/
fprint(va_alist)
va_dcl
{

View file

@ -100,12 +100,20 @@ to be defined as follows:
.br
.RS
.nf
/*VARARGS1*/
print(fmt, argv)
char *fmt;
int argv;
#include <varargs.h>
#include <system.h>
/*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
.RE
@ -123,4 +131,4 @@ The maximum length of the string to be printed is 1024 characters.
.SH SEE ALSO
printf(3)
.SH AUTHOR
Erik Baalbergen <erikb@vu44.UUCP>
Erik Baalbergen <erikb@cs.vu.nl>

View file

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

View file

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