unleashed-firmware/applications/external/nfc_maker/strnlen.c

11 lines
178 B
C
Raw Normal View History

2023-07-06 16:28:29 +00:00
#include "strnlen.h"
size_t strnlen(const char* s, size_t maxlen) {
size_t len;
for(len = 0; len < maxlen; len++, s++) {
if(!*s) break;
}
return len;
}