libbase: downstream users should provide fprintf.
authorwhitequark <whitequark@whitequark.org>
Sat, 1 Aug 2015 17:14:09 +0000 (20:14 +0300)
committerwhitequark <whitequark@whitequark.org>
Sat, 1 Aug 2015 17:14:09 +0000 (20:14 +0300)
software/libbase/console.c

index af8d140f7be48b8169c346c2dd129431db77b9dd..17274e2290fe9239e464d808c7eef00bb492dd20 100644 (file)
@@ -78,18 +78,3 @@ int printf(const char *fmt, ...)
 
        return len;
 }
-
-int fprintf(FILE *stream, const char *fmt, ...)
-{
-       va_list args;
-       int len;
-       char outbuf[PRINTF_BUFFER_SIZE];
-
-       va_start(args, fmt);
-       len = vscnprintf(outbuf, sizeof(outbuf), fmt, args);
-       va_end(args);
-       outbuf[len] = 0;
-       putsnonl(outbuf);
-
-       return len;
-}