Fix braces + init_paging args
This commit is contained in:
@@ -14,12 +14,14 @@ char* strcpy(char *dest, const char *src)
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/questions/2488563/strcat-implementation
|
||||
char *strcat(char *dest, const char *src){
|
||||
char *strcat(char *dest, const char *src)
|
||||
{
|
||||
size_t i,j;
|
||||
for (i = 0; dest[i] != '\0'; i++)
|
||||
;
|
||||
for (i = 0; dest[i] != '\0'; i++);
|
||||
|
||||
for (j = 0; src[j] != '\0'; j++)
|
||||
dest[i+j] = src[j];
|
||||
|
||||
dest[i+j] = '\0';
|
||||
return dest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user