shithub: brokentoys

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