diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/strtol.c | 2 | ||||
-rw-r--r-- | libc/stdlib/strtoul.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/strtol.c b/libc/stdlib/strtol.c index e6d4da3..c7c52af 100644 --- a/libc/stdlib/strtol.c +++ b/libc/stdlib/strtol.c @@ -19,7 +19,7 @@ long int strtol(const char *S, char **PTR,int BASE) short int digit; // *PTR is S, unless PTR is NULL, in which case i override it with my own ptr char* ptr; - if (PTR == 0) + if (PTR == NULL) { //override PTR = &ptr; diff --git a/libc/stdlib/strtoul.c b/libc/stdlib/strtoul.c index 8472668..e6e63ae 100644 --- a/libc/stdlib/strtoul.c +++ b/libc/stdlib/strtoul.c @@ -18,7 +18,7 @@ unsigned long int strtoul(const char *S, char **PTR,int BASE) short int digit; // *PTR is S, unless PTR is NULL, in which case i override it with my own ptr char* ptr; - if (PTR == 0) + if (PTR == NULL) { //override PTR = &ptr; |