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

Function trinity_module_string_set

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

Source from the content-addressed store, hash-verified

73}
74
75void trinity_module_string_set(trinity_module_string_t *ret, const char*s) {
76 ret->ptr = (char*) s;
77 ret->len = strlen(s);
78}
79
80void trinity_module_string_dup(trinity_module_string_t *ret, const char*s) {
81 ret->len = strlen(s);

Callers 1

trinity_module_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected