summaryrefslogtreecommitdiff
path: root/strlen.c
blob: efc063f15e89a526a5cf9b29c89e8d72472817c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <u.h>
#include <libc.h>

void
main()
{
	char txt[] = "i'm here now\n";

	print("len: %ld, lastchar: %c\n", strlen(txt), txt[strlen(txt)-1]);
	exits(nil);
}