StrEnd
- Macro
- October 8, 2025
Table of Contents
StrEnd
StrEnd
Description
Get pointer to one past the last character in string
Usage example (Cross-references)
- In
Str.Access.c:68
:
// Test StrEnd function
bool test_str_end(void) {
WriteFmt("Testing StrEnd\n");
Str s = StrInitFromZstr("Hello");
- In
Str.Access.c:73
:
// Get a pointer to one past the last character using StrEnd
char *end = StrEnd(&s);
// Check that the pointer is correct
- In
Str.c:119
:
case STR_END : {
char *end = StrEnd(str);
(void)end; // Suppress unused variable warning
break;