Skip to content

cf_string_static

Category: string
GitHub: cute_string.h


Creates a string with an initial static storage backing.

#define cf_string_static(s, buffer, buffer_size) sstatic(s, buffer, buffer_size)
Parameters Description
s The string. Can be NULL.
buffer Pointer to a static memory buffer.
buffer_size The size of buffer in bytes.

Remarks

Shortform: sstatic(s, buffer, buffer_size). Will grow onto the heap if the size becomes too large. Call sfree when done.

cf_string_is_dynamic
cf_string_free
cf_string_set