Add: strnlen, strncat, safer string functions

This commit is contained in:
xamidev
2024-09-10 20:48:12 +02:00
parent 5e4e6d2db8
commit bf0228d3ac
2 changed files with 33 additions and 0 deletions

View File

@@ -12,4 +12,8 @@ char* strtok(char* str, const char* delimiter);
int atoi(char* str);
void strcat(char* dest, const char* src);
// Safer functions
size_t strnlen(const char* str, size_t max_len);
void strncat(char* dest, const char* src, size_t n);
#endif