MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / readStdin

Function readStdin

source/json_tool/json_tool.cpp:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403String readStdin() {
404 String result;
405 char buffer[1024];
406 while (!feof(stdin)) {
407 size_t readBytes = fread(buffer, 1, 1024, stdin);
408 result.append(buffer, readBytes);
409 }
410 return result;
411}
412
413int main(int argc, char** argv) {
414 try {

Callers 1

mainFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected