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

Function stream_write

slog/slog.c:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static void stream_write(struct hc_slog *s,
103 const size_t n,
104 struct hc_slog_field *fields[]) {
105 struct hc_slog_stream *ss = hc_baseof(s, struct hc_slog_stream, slog);
106
107 for(size_t i = 0; i < n; i++) {
108 struct hc_slog_field *f = fields[i];
109 if (i) { hc_puts(ss->out, ", "); }
110 field_write(f, ss->out);
111 }
112
113 hc_putc(ss->out, '\n');
114}
115
116struct hc_slog_stream *_hc_slog_stream_init(struct hc_slog_stream *s,
117 struct hc_stream *out,

Callers

nothing calls this directly

Calls 3

hc_putsFunction · 0.85
field_writeFunction · 0.85
hc_putcFunction · 0.85

Tested by

no test coverage detected