ZstrDeinit
- Function
- October 8, 2025
Table of Contents
ZstrDeinit
ZstrDeinit
Description
Deinit method for zero-terminated strings.
Note
This is meant to be used as deinit method with Zstrs
vector which is basically a typedef of Vec(const char*)
.
Parameters
Name | Direction | Description |
---|---|---|
src | in | Pointer to zero-terminated string to be destroyed. |
Success
Returns.
Failure
Does not return.
Usage example (Cross-references)
- In
Memory.c:152
:
}
void ZstrDeinit(const char **zs) {
if (!zs) {
LOG_FATAL("Invalid arguments");