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

Function hc_slog_string

slog/slog.c:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79struct hc_slog_field *hc_slog_string(const char *name, const char *value) {
80 struct hc_slog_field *f = malloc(sizeof(struct hc_slog_field));
81 field_init(f, name, &HC_STRING)->as_string = strdup(value);
82 return f;
83}
84
85struct hc_slog_field *hc_slog_time(const char *name, const hc_time_t value) {
86 struct hc_slog_field *f = malloc(sizeof(struct hc_slog_field));

Callers 1

slog_testsFunction · 0.85

Calls 1

field_initFunction · 0.85

Tested by 1

slog_testsFunction · 0.68