1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04: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;
}