pci: don't do sanity check for missing pci bus, the check can misfire.
[minix.git] / commands / aal / sprint.c
blobbdef67a45f86a7a8267ab1683d4925513803393d
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 /*FORMAT1v $
17 %s = char *
18 %l = long
19 %c = int
20 %[uxbo] = unsigned int
21 %d = int
22 $ */
23 char *
24 #if __STDC__
25 sprint(char *buf, char *fmt, ...)
26 #else
27 sprint(buf, fmt, va_alist)
28 char *buf, *fmt;
29 va_dcl
30 #endif
32 va_list args;
34 #if __STDC__
35 va_start(args, fmt);
36 #else
37 va_start(args);
38 #endif
39 buf[_format(buf, fmt, args)] = '\0';
40 va_end(args);
41 return buf;