ack/modules/src/print/print.c

30 lines
512 B
C
Raw Normal View History

1987-03-09 15:15:03 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1987-01-05 17:37:37 +00:00
/* $Header$ */
1988-04-15 15:34:19 +00:00
#include <varargs.h>
1987-01-05 17:37:37 +00:00
#include <system.h>
#include "param.h"
/*FORMAT0v $
%s = char *
%l = long
%c = int
%[uxbo] = unsigned int
%d = int
$ */
1988-04-15 15:34:19 +00:00
print(va_alist)
va_dcl
1987-01-05 17:37:37 +00:00
{
1988-04-15 15:34:19 +00:00
char *fmt;
va_list args;
1987-01-05 17:37:37 +00:00
char buf[SSIZE];
1988-04-15 15:34:19 +00:00
va_start(args);
fmt = va_arg(args, char *);
sys_write(STDOUT, buf, _format(buf, fmt, args));
va_end(args);
1987-01-05 17:37:37 +00:00
}