libk  kssz.fn.c at [49da7c1eeb]

File mod/kstr/kssz.fn.c artifact a254af4df5 part of check-in 49da7c1eeb


#include <k/type.h>
#include <k/str.h>

sz kssz(const char* str, sz max) {
	const char* end;
	for (end = str; *end!=0; ++end);
	return end - str;
}