diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libsys/sprintf/sprintf.c	Fri Jul 20 20:36:19 2018 +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);
+}