comparison src/libsys/sprintf/sprintf.c @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
1 #include <stdarg.h>
2
3 int
4 sprintf(char *strdest, char *fmt, ...)
5 {
6 va_list ap;
7 int len;
8
9 va_start(ap, fmt);
10 len = vsprintf(strdest, fmt, ap);
11 va_end(ap);
12 return(len);
13 }