StrLast

Table of Contents

StrLast

Description

Access last character in string

Usage example (Cross-references)

    // Test StrLast function
    bool test_str_last(void) {
    printf("Testing StrLast\n");
    
    Str s = StrInitFromZstr("Hello");
    
    // Get the last character
    char last = StrLast(&s);
    
    // Check that the character is correct

Share :