scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <stdio.h>
 2
 3#include "../syscall.h"
 4#include "../libc.h"
 5
 6#undef freopen
 7
 8FILE *
 9freopen(const char * restrict name, const char * restrict mode,
10        FILE * restrict fp)
11{
12	if (fclose(fp) == EOF)
13		return NULL;
14	return _fpopen(name, mode, fp);
15}