git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9243 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2013-01-07 16:28:59 +00:00
parent 71e58a480a
commit 7886b6f1d1
1 changed files with 3 additions and 1 deletions

View File

@ -233,12 +233,14 @@ void Input::file(const char *filename)
}
/* ----------------------------------------------------------------------
parse the command in single and execute it
copy command in single to line, parse and execute it
return command name to caller
------------------------------------------------------------------------- */
char *Input::one(const char *single)
{
int n = strlen(single) + 1;
if (n > maxline) reallocate(line,maxline,n);
strcpy(line,single);
// echo the command unless scanning for label