How victoro94/lib_string works
lib_string is a small C library that wraps a NUL-terminated buffer with size and capacity in a String type. Its principal workflow is to create a String, inspect or print it, then release it; the sample program demonstrates this with both an empty value and a C-string value. The library also provides length queries, comparisons, and deep or truncated duplication. The graph focuses on runtime behavior; the README describes the sample as a place to try the library. The available excerpts do not show calls for every API module.
Main entry points: string_io.c Display output · main.c Sample program · string_init.c Create and free · string_dup.c Duplication
Components 7
Other components
- Sample program
src/main.c - String type
src/string/string.h - Create and free
src/string/string_init.c - Length query
src/string/string_data.c - Comparisons
src/string/string_cmp.c - Duplication
src/string/string_dup.c - Display output
src/string/string_io.c
Connections 4
- Sample program → Create and free: creates and frees
src/main.c - Sample program → Display output: debug prints
src/main.c - Display output → Display output: displays content
src/string/string_io.c - Duplication → Create and free: creates copy
src/string/string_dup.c