Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

example.c.cstring_create

Purpose

Minimal illustration of cstring_create() and cstring_destroy(), printing the resulting length, capacity, and contents.

Build

Built when BUILD_EXAMPLES is enabled (the default).

Run

${SIS_CMAKE_BUILD_DIR:-./_build}/examples/c/example.c.cstring_create/example.c.cstring_create

Expected output

successfully created string with length 9 capacity 16 and contents 'String-#1'

Capacity may vary by allocator / growth policy; length and contents should match.