Annotation of coherent/b/lib/libc/XSTDIO/vsprintf.c, revision 1.1

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:        FILE    file;
        !            16:        int     count;
        !            17: 
        !            18:        _stropen(s, -1, &file);
        !            19:        count = vfprintf(&file, format, args);
        !            20:        putc('\0', &file);
        !            21:        return count;
        !            22: }
        !            23: 
        !            24: /* end of libc/stdio/vsprintf.c */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.