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

Function hc_memory_stream_string

stream1/stream1.c:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170const char *hc_memory_stream_string(struct hc_memory_stream *s) {
171 if (!s->data.length || (*(s->data.end-1))) {
172 *(uint8_t *)hc_vector_push(&s->data) = 0;
173 }
174
175 return (const char *)s->data.start;
176}

Callers 4

eval_testsFunction · 0.85
hc_read_idFunction · 0.85
stream1_testsFunction · 0.85
slog_testsFunction · 0.85

Calls 1

hc_vector_pushFunction · 0.85

Tested by 3

eval_testsFunction · 0.68
stream1_testsFunction · 0.68
slog_testsFunction · 0.68