shithub: brokentoys

ref: 5961a8b6d2f95e29c0b7b0b450eb988763b12c40
dir: /strlen.c/

View raw version
#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);
}