shithub: brokentoys

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