MCPcopy Create free account
hub / github.com/acl-dev/acl / test_stdio

Function test_stdio

lib_acl_cpp/samples/fstream/main.cpp:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <stdlib.h>
6
7static void test_stdio(void)
8{
9 acl::string buf;
10 acl::ifstream in;
11 in.open(0, O_RDONLY);
12
13 printf("waiting input from stdin:\r\n");
14 if (in.gets(buf))
15 printf(">>>>ok, gets: %s\n", buf.c_str());
16 else
17 printf(">>>gets error, %s\n", acl_last_serror());
18}
19
20int main(void)
21{

Callers 1

mainFunction · 0.85

Calls 4

acl_last_serrorFunction · 0.85
getsMethod · 0.80
openMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…