bump-allocated PID but kheap needs fix to kmalloc more than PAGE_SIZE
This commit is contained in:
@@ -16,4 +16,11 @@ char *strcat(char *dest, const char *src){
|
||||
dest[i+j] = src[j];
|
||||
dest[i+j] = '\0';
|
||||
return dest;
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/questions/14159625/implementation-of-strncpy
|
||||
void strncpy(char* dst, const char* src, size_t n)
|
||||
{
|
||||
size_t i = 0;
|
||||
while(i++ != n && (*dst++ = *src++));
|
||||
}
|
||||
Reference in New Issue
Block a user