some type system updates

This commit is contained in:
2022-09-06 15:53:13 +06:00
parent 21b20e5e14
commit e63056d244
11 changed files with 119 additions and 96 deletions

View File

@@ -1,5 +1,8 @@
#include "string.h"
kerepTypeId_define(kerepTypeId_string);
kerepTypeId_define(kerepTypeId_stringPtr);
// copies str content to new char pointer value (adding '\0' at the end)
char* string_extract(string str){
if(str.length==0) return NULL;