shithub: brokentoys

ref: f64d365463e5d7b8c0d06bbf0930eeb96d1130a3
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);
}