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

Function readline

samples/fun_call_performance.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39char* readline(const char* p)
40{
41 std::string retval;
42 std::cout << p;
43 std::getline(std::cin, retval);
44 return std::cin.eof() ? nullptr : mystrdup(retval.c_str());
45}
46
47
48void add_history(const char*){}

Callers 2

get_next_commandFunction · 0.70
get_next_commandFunction · 0.70

Calls 2

mystrdupFunction · 0.70
c_strMethod · 0.45

Tested by 1

get_next_commandFunction · 0.56