-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Large refactor to the app to fix URL configs
- Loading branch information
Showing
5 changed files
with
50 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// This file provides implementations for some common libc functions we need, since we dont want to link against libc proper | ||
|
||
char *strcpy(char *dest, const char *src) | ||
{ | ||
char *ret = dest; | ||
|
||
while (*src) | ||
{ | ||
*dest++ = *src++; | ||
} | ||
*dest = '\0'; | ||
|
||
return ret; | ||
} | ||
|
||
int strlen(const char *s) | ||
{ | ||
int len = 0; | ||
while (*s++) | ||
len++; | ||
return len; | ||
} | ||
|
||
int isspace(int c) | ||
{ | ||
return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#include <string.h> | ||
#include <psp2/io/fcntl.h> | ||
#include <psp2/kernel/clib.h> | ||
|
||
|