strlen(str) { local i = 0; if (str == NULL) return 0; loop { if ([str + i] == 0) return (i); i++; } }