4 * Copyright (C) 1991, 1992 Linus Torvalds
7 /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
9 * Wirzenius wrote this portably, Torvalds fucked it up :-)
14 int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args);
16 /* FIXME this global makes vsprintf non-reentrant */
19 static void str_tx_byte(unsigned char byte)
25 int vsprintf(char * buf, const char *fmt, va_list args)
29 i = vtxprintf(str_tx_byte, fmt, args);
30 /* maeder/Ispiri -- The null termination was missing a deference */
31 /* and was just zeroing out the pointer instead */
36 int sprintf(char * buf, const char *fmt, ...)
42 i=vsprintf(buf,fmt,args);