CE edit command
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m11s

This commit is contained in:
2026-03-05 16:29:59 +01:00
parent a5f5dbf21f
commit 25b289ccfb
11 changed files with 316 additions and 30 deletions

View File

@@ -140,3 +140,17 @@ void* memmove (void* dest, const void* src, unsigned int n) {
}
return dest;
}
char* strncat (char* dest, const char* src, size_t n) {
char* ptr = dest;
while (*ptr != '\0')
ptr++;
while (n > 0 && *src != '\0') {
*ptr++ = *src++;
n--;
}
*ptr = '\0';
return dest;
}

View File

@@ -31,6 +31,8 @@ int strcmp (const char* s1, const char* s2);
/* concatinate strings */
char* strcat (char* dest, const char* src);
char* strncat (char* dest, const char* src, size_t n);
int isalnum (int c);
int isalpha (int c);