StrReverse
Description
Reverse the characters of the string in place. See VecReverse for the full SUCCESS/FAILURE contract.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Str.Memory.c:154:
// Test StrReverse function
bool test_str_reverse(void) {
WriteFmt("Testing StrReverse\n");
DefaultAllocator alloc = DefaultAllocatorInit();- In
Str.Memory.c:161:
// Reverse the string
StrReverse(&s);
// Check that the string was reversed
- In
Str.Memory.c:171:
// Reverse the string
StrReverse(&s);
// Check that the string was reversed
- In
Str.Memory.c:181:
// Reverse the string
StrReverse(&s);
// Check that the string is unchanged
- In
Str.Memory.c:191:
// Reverse the string
StrReverse(&s);
// Check that the string is still empty
Last updated on