MCPcopy Create free account
hub / github.com/GJDuck/e9patch / sendCode

Method sendCode

src/e9tool/e9frontend.cpp:262–272  ·  view source on GitHub ↗

* Send code/data. */

Source from the content-addressed store, hash-verified

260 * Send code/data.
261 */
262void e9tool::sendCode(FILE *out, const char *code)
263{
264 fputc('[', out);
265 size_t len = strlen(code);
266 while (len > 0 && isspace(code[len-1]))
267 len--;
268 if (len > 0 && code[len-1] == ',')
269 len--;
270 fwrite(code, sizeof(char), len, out);
271 fputc(']', out);
272}
273
274/*
275 * Send raw bytes.

Callers

nothing calls this directly

Calls 4

fputcFunction · 0.85
isspaceFunction · 0.85
fwriteFunction · 0.85
strlenFunction · 0.50

Tested by

no test coverage detected