#include "stddef.h" // for NULL #include // for weak_reference #include // for fread, FILE, fgets char *fgets(char *restrict s, int n, FILE *restrict stream) { return fread(s, 1, n, stream) ? s : NULL; } weak_reference(fgets, fgets_unlocked);