Artifact a45d7fa32d074b6d96340bd4d0db9a6679d143cd27c8c51d315550c783578fe5:
- File kstr/str.h — part of check-in [926d05a4ce] at 2019-07-27 03:55:06 on branch trunk — add docs/manifesto for kfile; add initial kfile headers and function prototypes; update headers to include c++ extern guards so libk functions can be used from c++ (user: lexi, size: 294) [annotate] [blame] [check-ins using]
#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