StrPushFrontZstr

Table of Contents

StrPushFrontZstr

Description

Push a null-terminated string to the front of this string.

Parameters

NameDirectionDescription
strin,outStr to insert array chars into.
zstrinNull-terminated string to be appended.

Success

str

Failure

NULL

Usage example (Cross-references)

    // Test StrPushFrontZstr function
    bool test_str_push_front_zstr(void) {
    printf("Testing StrPushFrontZstr\n");
    
    Str s = StrInitFromZstr("World");
    
    // Push a string at the front
    StrPushFrontZstr(&s, "Hello ");
    
    // Check that the string was inserted correctly

Share :