Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
170
const 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_tests
Function · 0.85
hc_read_id
Function · 0.85
stream1_tests
Function · 0.85
slog_tests
Function · 0.85
Calls
1
hc_vector_push
Function · 0.85
Tested by
3
eval_tests
Function · 0.68
stream1_tests
Function · 0.68
slog_tests
Function · 0.68