Cyclone Scheme  0.4

◆ make_string_with_len

#define make_string_with_len (   cs,
  s,
  length 
)
Value:
{ int len = length; \
cs.hdr.grayed = 0; \
cs.tag = string_tag; cs.len = len; \
cs.str = alloca(sizeof(char) * (len + 1)); \
memcpy(cs.str, s, len); \
cs.str[len] = '\0';}
int len
Definition: types.h:705
#define gc_color_red
Definition: types.h:239
Definition: types.h:54
char * str
Definition: types.h:706
The string type.
Definition: types.h:702
unsigned char mark
Definition: types.h:214
gc_header_type hdr
Definition: types.h:703

Create a new string with the given length (so it does not need to be computed)