Cyclone Scheme
0.28.0
|
◆ make_utf8_string_with_len
Value:
string_type cs; \
{ int len = length; \
cs.hdr.grayed = 0; \
cs.hdr.immutable = 0; \
cs.tag = string_tag; cs.len = len; \
cs.num_cp = num_code_points; \
cs.str = alloca(sizeof(char) * (len + 1)); \
memcpy(cs.str, s, len); \
cs.str[len] = '\0';}
Create a new string with the given length (so it does not need to be computed) |