This commit is contained in:
alexvoste
2026-05-07 02:22:25 +03:00
commit 1a9fd27a31
226 changed files with 29188 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#include <string.h>
size_t strnlen(const char* s, size_t maxlen) {
size_t n = 0;
while (n < maxlen && s[n]) n++;
return n;
}