libk  str.h at [926d05a4ce]

File kstr/str.h artifact a45d7fa32d part of check-in 926d05a4ce


#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