scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 97a6e644d22b794481c4085e844af427b04e0631
parent 522370a84a91027750e27493a23f577e048c4e05
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  5 Dec 2017 00:02:47 +0100

[lib/c] Fix printf()

Remenber, printf() prints to stdout not to stdin.

Diffstat:
Mlib/c/src/printf.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/c/src/printf.c b/lib/c/src/printf.c @@ -9,7 +9,7 @@ printf(const char * restrict fmt, ...) va_list va; va_start(va, fmt); - cnt = vfprintf(stdin, fmt, va); + cnt = vfprintf(stdout, fmt, va); va_end(va); return cnt; }