StrReverse
- Macro
- October 8, 2025
Table of Contents
StrReverse
StrReverseDescription
Reverse contents of this string.
Parameters
| Name | Direction | Description |
|---|---|---|
str | in,out | Str to be reversed. |
Success
str
Failure
NULL
Usage example (Cross-references)
- In
Str.Memory.c:139:
// Test StrReverse function
bool test_str_reverse(void) {
WriteFmt("Testing StrReverse\n");
Str s = StrInitFromZstr("Hello");
- In
Str.Memory.c:144:
// Reverse the string
StrReverse(&s);
// Check that the string was reversed
- In
Str.Memory.c:154:
// Reverse the string
StrReverse(&s);
// Check that the string was reversed
- In
Str.Memory.c:164:
// Reverse the string
StrReverse(&s);
// Check that the string is unchanged
- In
Str.Memory.c:174:
// Reverse the string
StrReverse(&s);
// Check that the string is still empty
- In
Str.c:404:
// Advanced operations
case STR_REVERSE : {
StrReverse(str);
break;
}