1
0
Fork 0

added full line support

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@465
This commit is contained in:
Peter Veenstra 2002-10-30 18:49:44 +00:00
parent 25692864a9
commit 46a1e79f94
2 changed files with 12 additions and 1 deletions

View file

@ -369,3 +369,13 @@ CommandLine::CommandLine(char * name,char * cmdline) {
}
if (inword || inquote) cmds.push_back(str);
}
void CommandLine::GetFullLine(char * in) {
cmd_it it;
*in=0;
char spatie[2]={' ',0};
for (it=cmds.begin();it!=cmds.end();it++) {
strcat(in,spatie);
strcat(in,(*it).c_str());
}
}