mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9243 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
71e58a480a
commit
7886b6f1d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue