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

Function hc_stdout

stream1/stream1.c:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117};
118
119struct hc_stream *hc_stdout() {
120 static __thread bool init = true;
121 static __thread struct hc_file_stream s;
122
123 if (init) {
124 hc_file_stream_init(&s, stdout);
125 init = false;
126 }
127
128 return &s.stream;
129}
130
131size_t memory_read(struct hc_stream *s, uint8_t *data, size_t n) {
132 struct hc_memory_stream *ms = hc_baseof(s, struct hc_memory_stream, stream);

Callers 2

hc_dsl_initFunction · 0.85
hc_slogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected