mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
21 lines
288 B
C
21 lines
288 B
C
|
#ifndef TAILIX_KERNEL_INCLUDED_UTIL
|
||
|
#define TAILIX_KERNEL_INCLUDED_UTIL 1
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <stddef.h>
|
||
|
|
||
|
static inline size_t strlen(const char *s);
|
||
|
|
||
|
size_t strlen(const char *const s)
|
||
|
{
|
||
|
size_t len = 0;
|
||
|
|
||
|
while (s[len]) {
|
||
|
len++;
|
||
|
}
|
||
|
|
||
|
return len;
|
||
|
}
|
||
|
|
||
|
#endif
|