From b5cd18739a64c8d923a55b61c89ae3900faafd84 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 21:17:12 +0100 Subject: Fix include paths and formatting inconsistencies --- lib/libc/stdio/feof.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/feof.c') diff --git a/lib/libc/stdio/feof.c b/lib/libc/stdio/feof.c index 0b3eb1ec..f8478d03 100644 --- a/lib/libc/stdio/feof.c +++ b/lib/libc/stdio/feof.c @@ -1,10 +1,12 @@ -#include -#include +#include "stddef.h" // for NULL + +#include // for __IMPL +#include // for FILE, feof int feof(FILE *stream) { - if (!stream) + if (stream == NULL) return 0; - return stream->eof; + return __IMPL(stream)->eof; } -- cgit v1.2.3