StrPushBack
Description
Unsuffixed default – alias for StrPushBackL.
Success
Returns true; the character is appended at the tail; the source char lvalue is zeroed-on-take per the L-form invariant.
Failure
Returns false on allocation failure. str unchanged.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
VecStr.c:56:
ch = (char)('A' + (i % 26)); // Fallback pattern
}
StrPushBack(&str, ch);
}- In
Str.Insert.c:213:
// Test StrPushBack function
bool test_str_push_back(void) {
WriteFmt("Testing StrPushBack\n");
DefaultAllocator alloc = DefaultAllocatorInit();
Last updated on