MCPcopy Create free account
hub / github.com/bnjbvr/trinity / trinity_module_string_free

Function trinity_module_string_free

c-hello-world-module/trinity_module.c:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void trinity_module_string_free(trinity_module_string_t *ret) {
87 if (ret->len > 0) {
88 free(ret->ptr);
89 }
90 ret->ptr = NULL;
91 ret->len = 0;
92}
93
94// Component Adapters
95

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected