Skip to content
StrDeleteLastChar

StrDeleteLastChar

StrDeleteLastChar

Description

Delete last char from vec

Success

return

Failure

Does not return

Usage example (Cross-references)

Usage examples (Cross-references)
    // Test StrDeleteLastChar function
    bool test_str_delete_last_char(void) {
        WriteFmt("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
Last updated on