libk  kssz.fn.c at [12a51d9c50]

File mod/kstr/kssz.fn.c artifact a254af4df5 part of check-in 12a51d9c50


#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;
}