MCPcopy Create free account
hub / github.com/IntegralPilot/wasm_os / getchar_safe

Function getchar_safe

stdlib/cpp/iostream.hpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10extern "C" void s_putchar(int i);
11
12int getchar_safe() {
13 int c = getchar();
14 while (c == '\0') {
15 c = getchar();
16 }
17 return c;
18}
19
20 void itoa(int num, char* str) {
21 int i = 0;

Callers 1

istreamClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected