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

Function file_read

stream1/stream1.c:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79size_t file_read(struct hc_stream *s, uint8_t *data, const size_t n) {
80 struct hc_file_stream *fs = hc_baseof(s, struct hc_file_stream, stream);
81 assert(fs->file);
82 return fread(data, n, 1, fs->file);
83}
84
85size_t file_write(struct hc_stream *s, const uint8_t *data, const size_t n) {
86 struct hc_file_stream *fs = hc_baseof(s, struct hc_file_stream, stream);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected