1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/arch/util.h
2017-11-01 10:25:30 +00:00

17 lines
277 B
C

#ifndef TAILIX_KERNEL_INCLUDED_UTIL
#define TAILIX_KERNEL_INCLUDED_UTIL 1
static inline unsigned int strlen(const char *s);
unsigned int strlen(const char *const s)
{
unsigned int result = 0;
while (s[result]) {
++result;
}
return result;
}
#endif