size_t BUF_strnlen(const char *str, size_t maxlen)
	{
	const char *p;
	for (p = str; *p != '\0' && maxlen-- != 0; ++p)
		;
	return p - str;
	}
["size_t BUF_strnlen(const char *str, size_t maxlen)\n\t{\n\tconst char *p;\n\tfor (p = str; *p != '\\0' && maxlen-- != 0; ++p)\n\t\t;\n\treturn p - str;\n\t}"]