Skip to content
StrPushFrontZstr

StrPushFrontZstr

StrPushFrontZstr

Description

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

Parameters

Name Direction Description
str in,out Str to insert array chars into.
zstr in Null-terminated string to be appended.

Success

str

Failure

NULL

Usage example (Cross-references)

Usage examples (Cross-references)
    // Test StrPushFrontZstr function
    bool test_str_push_front_zstr(void) {
        WriteFmt("Testing StrPushFrontZstr\n");
    
        Str s = StrInitFromZstr("World");
    
        // Push a string at the front
        StrPushFrontZstr(&s, "Hello ");
    
        // Check that the string was inserted correctly
Last updated on