#include "spice.h"
#include "inpdefs.h"
#include "iferrmsg.h"
#include "misc.h"
Go to the source code of this file.
|
#define | issep(c) ((c)==' '||(c)=='\t'||(c)=='='||(c)=='('||(c)==')'||(c)==',') |
|
#define issep |
( |
|
c | ) |
((c)==' '||(c)=='\t'||(c)=='='||(c)=='('||(c)==')'||(c)==',') |
int INPgetTok |
( |
char ** |
line, |
|
|
char ** |
token, |
|
|
int |
gobble |
|
) |
| |
Definition at line 20 of file inpgtok.c.
29 for (point = *
line; *point !=
'\0'; point++) {
30 if (
issep(*point))
continue;
38 for (point = *
line; *point !=
'\0'; point++) {
39 if (
issep(*point))
break;
44 (void) strncpy(*token,*
line,point - *
line);
45 *(*token + (point - *
line)) =
'\0';
49 for ( ; **
line !=
'\0'; (*line)++) {
50 if (**
line ==
' ')
continue;
51 if (**
line ==
'\t')
continue;
52 if ((**
line ==
'=') && gobble)
continue;
53 if ((**
line ==
',') && gobble)
continue;