diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-11-22 09:11:12 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-11-22 09:11:12 +0800 |
| commit | ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0 (patch) | |
| tree | 43e2a53f4e5f7f55b075cfc9d6dc7a652a7b0837 /libpsn00b/libc/string.c | |
| parent | d80d92e13330d527ddb94420b19f9e21bf0e74eb (diff) | |
| download | psn00bsdk-ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0.tar.gz | |
Added long awaited CD-ROM library and loads of fixes, see changelog for details
Diffstat (limited to 'libpsn00b/libc/string.c')
| -rw-r--r-- | libpsn00b/libc/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpsn00b/libc/string.c b/libpsn00b/libc/string.c index a14d950..0b7307d 100644 --- a/libpsn00b/libc/string.c +++ b/libpsn00b/libc/string.c @@ -43,7 +43,7 @@ char *strncpy(char *dst, const char *src, int len) len--; } - if(len)*dst = 0; + *dst = 0; return odst; } @@ -139,13 +139,13 @@ char *strstr(const char *big, const char *little) int strcmp(const char *s1, const char *s2) { - while(*s1 && *s2 && (*s1 == *s2)) + while((*s1) && (*s2) && (*s1 == *s2)) { s1++; s2++; } - return *s1-*s2; + return(*s1-*s2); } int strncmp(const char *s1, const char *s2, int len) |
