MCPcopy Create free account
hub / github.com/assaultcube/AC / readarg

Function readarg

source/src/wizard.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static void readarg(const char *desc, char *val, int len)
32{
33 printf("%s: ", desc);
34 fflush(stdout);
35 fgets(val, len, stdin);
36 char *end = strchr(val, '\n');
37 if(end) *end = '\0';
38}
39
40static void readarg(vector<char> &argstr, const char *desc, const char *name)
41{

Callers 1

wizardmainFunction · 0.85

Calls 1

addargFunction · 0.85

Tested by

no test coverage detected