diff options
| author | Mike Smith <msmith@FreeBSD.org> | 1998-11-01 09:31:08 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 1998-11-01 09:31:08 +0000 |
| commit | 17bcf9c00ad4612382f4ce7320a5bfcf69041b5a (patch) | |
| tree | f18f9e9092949bb1c751bd65c6c5788e45ae8620 /lib/libstand/printf.c | |
| parent | 5fabcd1a002ce0e7ee3d93d64624376353ed8bac (diff) | |
Notes
Diffstat (limited to 'lib/libstand/printf.c')
| -rw-r--r-- | lib/libstand/printf.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/libstand/printf.c b/lib/libstand/printf.c index 8c7b38477a7e..5135e10183a9 100644 --- a/lib/libstand/printf.c +++ b/lib/libstand/printf.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 - * $Id: subr_prf.c,v 1.46 1998/05/28 09:30:20 phk Exp $ + * $Id: printf.c,v 1.1.1.1 1998/08/20 08:19:55 msmith Exp $ */ /* @@ -74,9 +74,6 @@ vprintf(const char *fmt, va_list ap) kvprintf(fmt, putchar, NULL, 10, ap); } -/* - * Scaled down version of sprintf(3). - */ int sprintf(char *buf, const char *cfmt, ...) { @@ -90,6 +87,15 @@ sprintf(char *buf, const char *cfmt, ...) return retval; } +void +vsprintf(char *buf, const char *cfmt, va_list ap) +{ + int retval; + + retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap); + buf[retval] = '\0'; +} + /* * Put a number (base <= 16) in a buffer in reverse order; return an * optional length and a pointer to the NULL terminated (preceded?) |
