|
CSTR v1.1.0-build
Simple yet powerful string manipulation in C
|
Custom dynamic string type. More...
#include <cstr.h>
Public Attributes | |
| size_t | cap |
| Total allocated capacity (including NULL terminator). | |
| char * | data |
| Pointer to the character buffer Always NULL terminated if properly managed through the API. | |
| bool | forceCap |
| If true, capacity is fixed and operations that exceed it return an error instead of reallocating the size. | |
| bool | initialized |
| Tracks whether this CSTR has been initialized. | |
| size_t | len |
| Current string length (not counting the NULL terminator). | |
Custom dynamic string type.
The fields should typically be managed only through the cstr_* API Directly modifying them can lead to undefined behavior unless explicitly intended
| size_t CSTR::cap |
| char* CSTR::data |
| bool CSTR::forceCap |
| bool CSTR::initialized |
| size_t CSTR::len |