StrPushFrontZstr
- Macro
- August 22, 2025
Table of Contents
StrPushFrontZstr
StrPushFrontZstr
Description
Push a null-terminated string to the front of this string.
Parameters
Name | Direction | Description |
---|---|---|
str | in,out | Str to insert array chars into. |
zstr | in | Null-terminated string to be appended. |
Success
str
Failure
NULL
Usage example (Cross-references)
- In
Str.Insert.c:188
:
// Test StrPushFrontZstr function
bool test_str_push_front_zstr(void) {
printf("Testing StrPushFrontZstr\n");
Str s = StrInitFromZstr("World");
- In
Str.Insert.c:193
:
// Push a string at the front
StrPushFrontZstr(&s, "Hello ");
// Check that the string was inserted correctly