Skip to content

sstatic

Category: string
GitHub: cute_string.h


Creates a string with an initial static storage backing.

#define sstatic(s, buffer, buffer_size) cf_string_static(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

Will grow onto the heap if the size becomes too large. Call sfree when done.

sdyna
sset
sisdyna
spush