FreeCalypso > hg > ffs-editor
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libsys/sprintf/sprintf.c Fri May 15 01:28:16 2020 +0000 @@ -0,0 +1,13 @@ +#include <stdarg.h> + +int +sprintf(char *strdest, char *fmt, ...) +{ + va_list ap; + int len; + + va_start(ap, fmt); + len = vsprintf(strdest, fmt, ap); + va_end(ap); + return(len); +}