1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-03-03 16:04:28 -05:00
kernel/test/libk/strlen.c
2017-11-04 07:33:31 +00:00

13 lines
217 B
C

#include <kernelmq/stdlib.h>
#include <assert.h>
int main()
{
assert(kstrlen("") == 0);
assert(kstrlen("q") == 1);
assert(kstrlen("qwe rty") == 7);
assert(kstrlen("qwe\0rty") == 3);
return 0;
}