comparison target-utils/libprintf/printf.c @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 #include <stdarg.h>
2
3 extern void putchar();
4
5 int
6 printf(char *fmt, ...)
7 {
8 va_list ap;
9 int len;
10
11 va_start(ap, fmt);
12 len = _doprnt(fmt, ap, &putchar);
13 va_end(ap);
14 return(len);
15 }