blob: 75ffb064783cfce4ec98ab1b4f87250f281d06a0 (
plain)
1
2
3
4
5
6
7
8
9
|
#include <libc.h>
#include <stdio.h>
char *fgets(char *restrict s, int n, FILE *restrict stream)
{
return fread(s, 1, n, stream) ? s : NULL;
}
weak_reference(fgets, fgets_unlocked);
|