print.c

Go to the documentation of this file.
00001 /*
00002  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
00003  * See the copyright notice in the ACK home directory, in the file "Copyright".
00004  */
00005 /* $Header: /opt/proj/minix/cvsroot/src/commands/aal/print.c,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
00006 
00007 #if __STDC__
00008 #include <stdarg.h>
00009 #else
00010 #include <varargs.h>
00011 #endif
00012 #include <system.h>
00013 #include "param.h"
00014 
00015 /*VARARGS*/
00016 /*FORMAT0v $
00017         %s = char *
00018         %l = long
00019         %c = int
00020         %[uxbo] = unsigned int
00021         %d = int
00022 $ */
00023 int
00024 #if __STDC__
00025 print(char *fmt, ...)
00026 #else
00027 print(fmt, va_alist)
00028         char *fmt;
00029         va_dcl
00030 #endif
00031 {
00032         va_list args;
00033         char buf[SSIZE];
00034 
00035 #if __STDC__
00036         va_start(args, fmt);
00037 #else
00038         va_start(args);
00039 #endif
00040         sys_write(STDOUT, buf, _format(buf, fmt, args));
00041         va_end(args);
00042 }

Generated on Fri Apr 14 22:56:37 2006 for minix by  doxygen 1.4.6