StrDeleteLastChar

Table of Contents

StrDeleteLastChar

Description

Delete last char from vec

Success

return

Failure

Does not return

Usage example (Cross-references)

    // Test StrDeleteLastChar function
    bool test_str_delete_last_char(void) {
    printf("Testing StrDeleteLastChar\n");
    
    Str s = StrInitFromZstr("Hello");
    
    // Delete the last character
    StrDeleteLastChar(&s);
    
    // Check that the character was deleted
    
    // Delete another character
    StrDeleteLastChar(&s);
    
    // Check that the character was deleted

Share :