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

Function readline

src/main.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42char* readline(const char* p)
43{
44 std::string retval;
45 std::cout << p ;
46 std::getline(std::cin, retval);
47 return std::cin.eof() ? nullptr : mystrdup(retval.c_str());
48}
49
50
51void 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