forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5125 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
5b5aedb034
commit
fe8e6e1e59
|
@ -355,7 +355,7 @@ void PairTable::read_table(Table *tb, char *file, char *keyword)
|
|||
while (1) {
|
||||
if (fgets(line,MAXLINE,fp) == NULL)
|
||||
error->one("Did not find keyword in table file");
|
||||
if (strspn(line," \t\n") == strlen(line)) continue; // blank line
|
||||
if (strspn(line," \t\n\r") == strlen(line)) continue; // blank line
|
||||
if (line[0] == '#') continue; // comment
|
||||
if (strstr(line,keyword) == line) break; // matching keyword
|
||||
fgets(line,MAXLINE,fp); // no match, skip section
|
||||
|
|
Loading…
Reference in New Issue