From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- lib/libc/stdio/feof_unlocked.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/libc/stdio/feof_unlocked.c (limited to 'lib/libc/stdio/feof_unlocked.c') diff --git a/lib/libc/stdio/feof_unlocked.c b/lib/libc/stdio/feof_unlocked.c new file mode 100644 index 00000000..4d7d9d53 --- /dev/null +++ b/lib/libc/stdio/feof_unlocked.c @@ -0,0 +1,7 @@ +#include <__stdio.h> +#include + +int feof_unlocked(FILE *stream) +{ + return (stream) ? stream->eof : 0; +} -- cgit v1.2.3