Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 636 Bytes

File metadata and controls

30 lines (15 loc) · 636 Bytes

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.