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 int vsprintf(char * buf, const char *fmt, va_list args)
20 /* this function is only used by vsprintf.
21 To keep str_buf local (for reentrancy
22 and to avoid .bss use, nest it */
23 void str_tx_byte(unsigned char byte)
31 i = vtxprintf(str_tx_byte, fmt, args);
36 int sprintf(char * buf, const char *fmt, ...)
42 i=vsprintf(buf,fmt,args);