StrFirst

Table of Contents

StrFirst

Description

Access first character in string

Usage example (Cross-references)

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

Share :