re-enable munmap().
[minix.git] / commands / aal / print.c
blobbb7353d7c60621684fccde4cec0f7ce3e30bac78
1 /*
2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
4 */
5 /* $Header$ */
7 #if __STDC__
8 #include <stdarg.h>
9 #else
10 #include <varargs.h>
11 #endif
12 #include <system.h>
13 #include "param.h"
15 /*VARARGS*/
16 /*FORMAT0v $
17 %s = char *
18 %l = long
19 %c = int
20 %[uxbo] = unsigned int
21 %d = int
22 $ */
23 int
24 #if __STDC__
25 print(char *fmt, ...)
26 #else
27 print(fmt, va_alist)
28 char *fmt;
29 va_dcl
30 #endif
32 va_list args;
33 char buf[SSIZE];
35 #if __STDC__
36 va_start(args, fmt);
37 #else
38 va_start(args);
39 #endif
40 sys_write(STDOUT, buf, _format(buf, fmt, args));
41 va_end(args);