comparison src/libsys/sprintf/sprintf.c @ 86:425ab6d987f3

src/libsys: pieced together from Citrine
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 20 Jul 2018 20:36:19 +0000
parents
children
comparison
equal deleted inserted replaced
85:4ef6808ea50e 86:425ab6d987f3
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 }