StrBegin
- Macro
- August 22, 2025
Table of Contents
StrBegin
StrBegin
Description
Get pointer to first character in string
Usage example (Cross-references)
- In
Str.Access.c:52
:
// Test StrBegin function
bool test_str_begin(void) {
printf("Testing StrBegin\n");
Str s = StrInitFromZstr("Hello");
- In
Str.Access.c:57
:
// Get a pointer to the first character using StrBegin
char* begin = StrBegin(&s);
// Check that the pointer is correct