summaryrefslogtreecommitdiff
path: root/os/src/fprintf.c
blob: a56ed33d99230ba39e132e8084f6c114e6164d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <reent.h>
#include <stdio.h>
#include <stdarg.h>
#include "osdebug.h"

int fprintf(FILE * file, const char * fmt, ...) {
    int r;
    va_list ap;
//    DBGOUT("fprintf(%p, %p, ...)\r\n", file, fmt);
    va_start(ap, fmt);
    r = _vfprintf_r(_impure_ptr, file, fmt, ap);
    va_end(ap);
    return r;
}