Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
39
char* 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
48
void add_history(const char*){}
Callers
2
get_next_command
Function · 0.70
get_next_command
Function · 0.70
Calls
2
mystrdup
Function · 0.70
c_str
Method · 0.45
Tested by
1
get_next_command
Function · 0.56