comparison loadagent/libprintf/vsprintf.c @ 3:45bf8af5f061

libprintf brought in from older PPC/m68k code, but fucking GCC refuses to compile <varargs.h> - need to convert to Anshit C <stdarg.h>
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Apr 2013 07:00:22 +0000
parents
children 5c7b3d5d5702
comparison
equal deleted inserted replaced
2:ddda170fa6f4 3:45bf8af5f061
1 #include <varargs.h>
2
3 extern void _sprintf_putchar();
4
5 int
6 vsprintf(str, fmt, ap)
7 va_list ap;
8 char *str, *fmt;
9 {
10 char *strptr;
11 int len;
12
13 strptr = str;
14 len = _doprnt(fmt, ap, &_sprintf_putchar, &strptr);
15 *strptr = '\0';
16 return(len);
17 }