libk  Artifact Content

Artifact a254af4df57ef3f8e88d0e5c4ce88ad396338f8e1343825d0dffecf37c4089c2:


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