From 8fa851ddb610e5fbed9a1831b8bdbf88eb7852f3 Mon Sep 17 00:00:00 2001 From: turbocat Date: Sat, 24 Jul 2021 21:28:39 +0000 Subject: [PATCH] =?UTF-8?q?libc.obj:=20strtol.=D1=81=20=20-=20removed=20ex?= =?UTF-8?q?isting=20definitions;=20fgets.c=20-=20uses=20fread()=20to=20rea?= =?UTF-8?q?d;=20gets.c=20=20-=20added=20additional=20check;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://kolibrios.org@9081 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../develop/ktcc/trunk/libc.obj/source/stdio/fgets.c | 10 ++-------- .../develop/ktcc/trunk/libc.obj/source/stdio/gets.c | 8 ++++++-- .../develop/ktcc/trunk/libc.obj/source/stdlib/strtol.c | 5 ----- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/programs/develop/ktcc/trunk/libc.obj/source/stdio/fgets.c b/programs/develop/ktcc/trunk/libc.obj/source/stdio/fgets.c index 300ae09f7d..89f99e9c54 100644 --- a/programs/develop/ktcc/trunk/libc.obj/source/stdio/fgets.c +++ b/programs/develop/ktcc/trunk/libc.obj/source/stdio/fgets.c @@ -11,14 +11,8 @@ char *fgets(char *str, int n, FILE *stream) return NULL; } - while (i #include -#define LONG_MIN (-2147483647L-1) -#define LONG_MAX (2147483647L) -#define ULONG_MAX (4294967295UL) - - int getdigit(char ch, int base) { if (isdigit(ch)) ch-= '0';