StrFirst
- Macro
- August 22, 2025
Table of Contents
StrFirst
StrFirst
Description
Access first character in string
Usage example (Cross-references)
- In
Str.Access.c:20
:
// Test StrFirst function
bool test_str_first(void) {
printf("Testing StrFirst\n");
Str s = StrInitFromZstr("Hello");
- In
Str.Access.c:25
:
// Get the first character
char first = StrFirst(&s);
// Check that the character is correct