string: add strncpy

This commit is contained in:
Michael Shaw 2023-10-18 20:58:03 -04:00
commit 746c907a43
2 changed files with 12 additions and 0 deletions

View file

@ -11,8 +11,10 @@
void *memcpy(void *dest, const void *src, size_t num);
int memcmp(const void *aa, const void *bb, size_t num);
int strcmp(const char *a, const char *b);
void *memset(void *str, int c, size_t n);
char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t n);
char *strtok(char *str, const char *delim);
char **strsplit(const char *str, char delim, int *num);
size_t strlen(const char *c);