|
|
1.1 ! root 1: /* ! 2: * libc/stdio/vsprintf.c ! 3: * ANSI-compliant C standard i/o library. ! 4: * vsprintf() ! 5: * ANSI 4.9.6.9. ! 6: * Formatted print into given string. ! 7: */ ! 8: ! 9: #include <stdio.h> ! 10: #include <stdarg.h> ! 11: ! 12: int ! 13: vsprintf(s, format, args) char *s; const char *format; va_list args; ! 14: { ! 15: register int count; ! 16: FILE file; ! 17: _FILE2 file2; ! 18: ! 19: file._f2p = &file2; ! 20: _stropen(s, -1, &file); ! 21: count = vfprintf(&file, format, args); ! 22: putc('\0', &file); ! 23: return count; ! 24: } ! 25: ! 26: /* end of libc/stdio/vsprintf.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.