MCPcopy Create free account
hub / github.com/codr7/hacktical-c / string_copy

Function string_copy

reflect/reflect.c:75–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73};
74
75static void string_copy(struct hc_value *dst, struct hc_value *src) {
76 dst->as_string = strdup(src->as_string);
77}
78
79static void string_deinit(struct hc_value *v) {
80 free(v->as_string);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected