sprint.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/sprint.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 /*FORMAT1v $
00017         %s = char *
00018         %l = long
00019         %c = int
00020         %[uxbo] = unsigned int
00021         %d = int
00022 $ */
00023 char *
00024 #if __STDC__
00025 sprint(char *buf, char *fmt, ...)
00026 #else
00027 sprint(buf, fmt, va_alist)
00028         char *buf, *fmt;
00029         va_dcl
00030 #endif
00031 {
00032         va_list args;
00033 
00034 #if __STDC__
00035         va_start(args, fmt);
00036 #else
00037         va_start(args);
00038 #endif
00039         buf[_format(buf, fmt, args)] = '\0';
00040         va_end(args);
00041         return buf;
00042 }

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