]> Chaos Git - corbenik/corbenik.git/commitdiff
Move some more stuff from newlib
authorchaoskagami <chaos.kagami@gmail.com>
Thu, 18 Aug 2016 18:51:44 +0000 (14:51 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Thu, 18 Aug 2016 18:51:44 +0000 (14:51 -0400)
include/std/memory.h
source/std/memory.c

index ecb541e6aebfe03244e77a3c8af4f0ac91e0557d..a367c189b68ec597759d654505b088d547759d0e 100644 (file)
@@ -4,9 +4,9 @@
 #include <stdint.h>
 #include <stddef.h>
 #include <string.h>
+#include <ctype.h>
 
 int atoi(const char *str);
 uint8_t *memfind(uint8_t *startPos, uint32_t size, const void *pattern, uint32_t patternSize);
-int isprint(char c);
 
 #endif
index dc91fa7f201402cd3824a5f8d1f9ac96cfa9c7be..45bfd9be65ce9975d6eda318fc7923eda8b79edb 100644 (file)
@@ -3,14 +3,6 @@
 #include <stdint.h>
 #include <stddef.h>
 
-int
-isprint(char c)
-{
-    if (c >= 32 && c <= 127)
-        return 1;
-    return 0;
-}
-
 int
 atoi(const char *str)
 {