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

Function field_init

slog/slog.c:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static struct hc_value *field_init(struct hc_slog_field *f,
60 const char *name,
61 const struct hc_type *type) {
62 f->name = strdup(name);
63 hc_value_init(&f->value, type);
64 return &f->value;
65}
66
67struct hc_slog_field *hc_slog_bool(const char *name, const bool value) {
68 struct hc_slog_field *f = malloc(sizeof(struct hc_slog_field));

Callers 4

hc_slog_boolFunction · 0.85
hc_slog_intFunction · 0.85
hc_slog_stringFunction · 0.85
hc_slog_timeFunction · 0.85

Calls 1

hc_value_initFunction · 0.85

Tested by

no test coverage detected