1 // cl_make_heap_string().
12 #include "cl_malloc.h"
13 #include "cl_offsetof.h"
16 cl_heap_string* cl_make_heap_string (unsigned long len)
18 var cl_heap_string* str = (cl_heap_string*) cl_malloc_hook(offsetofa(cl_heap_string,data)+sizeof(char)*(len+1));
20 str->type = &cl_class_string;
22 return str; /* Have to fill data[0..len] yourself. */