Line | |
---|
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: /cvsup/minix/src/commands/aal/print.c,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
|
---|
6 |
|
---|
7 | #if __STDC__
|
---|
8 | #include <stdarg.h>
|
---|
9 | #else
|
---|
10 | #include <varargs.h>
|
---|
11 | #endif
|
---|
12 | #include <system.h>
|
---|
13 | #include "param.h"
|
---|
14 |
|
---|
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
|
---|
31 | {
|
---|
32 | va_list args;
|
---|
33 | char buf[SSIZE];
|
---|
34 |
|
---|
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);
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.