Skip to content

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)
                ch = (char)('A' + (i % 26));              // Fallback pattern
            }
            StrPushBack(&str, ch);
        }
    // Test StrPushBack function
    bool test_str_push_back(void) {
        WriteFmt("Testing StrPushBack\n");
        DefaultAllocator alloc = DefaultAllocatorInit();
Last updated on