mirror of https://github.com/tailix/kernel.git
14 lines
217 B
C
14 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;
|
||
|
}
|