libk  str.h at [0c20d256a6]

File kstr/str.h artifact a45d7fa32d part of check-in 0c20d256a6


#ifndef KIstr
#define KIstr

#include <k/mem.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct kstr {
	sz size;
	kmptr ptr;
} kstr;

typedef struct ksraw {
	sz size;
	const char* ptr;
} ksraw;

typedef struct ksmut {
	sz size;
	char* ptr;
} ksmut;

#ifdef __cplusplus
}
#endif

#endif