Line | Count | Source |
1 | /* Copyright (c) 2002-2006 Lucent Technologies; see LICENSE */ | |
2 | #include <stdarg.h> | |
3 | #include "plan9.h" | |
4 | #include "fmt.h" | |
5 | #include "fmtdef.h" | |
6 | ||
7 | char* | |
8 | smprint(char *fmt, ...) | |
9 | 1.70k | { |
10 | 1.70k | va_list args; |
11 | 1.70k | char *p; |
12 | ||
13 | 1.70k | va_start(args, fmt); |
14 | 1.70k | p = vsmprint(fmt, args); |
15 | 1.70k | va_end(args); |
16 | 1.70k | return p; |
17 | 1.70k | } |