MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / readline

Function readline

src/libfuzzer_client.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43char* readline(const char* p)
44{
45 std::string retval;
46 std::cout << p ;
47 std::getline(std::cin, retval);
48 return std::cin.eof() ? nullptr : mystrdup(retval.c_str());
49}
50
51
52void add_history(const char* /*unused*/){}

Callers 1

get_next_commandFunction · 0.70

Calls 2

mystrdupFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected