81 |
|
|
82 |
|
the_token = strtok( readLine, " ,;\t" ); |
83 |
|
if ( the_token != NULL) |
84 |
< |
if (!strcmp("begin", the_token)) { |
84 |
> |
if (!strcasecmp("begin", the_token)) { |
85 |
|
the_token = strtok( NULL, " ,;\t" ); |
86 |
|
if ( the_token != NULL){ |
87 |
< |
foundText = !strcmp( startText, the_token ); |
87 |
> |
foundText = !strcasecmp( startText, the_token ); |
88 |
|
} |
89 |
|
} |
90 |
|
|
130 |
|
|
131 |
|
foo = strtok(working_line, " ,;\t"); |
132 |
|
|
133 |
< |
if (!strcasecmp(foo, "end")) return 1; |
133 |
> |
if (foo != NULL) { |
134 |
> |
|
135 |
> |
if (!strcasecmp(foo, "end")) return 1; |
136 |
> |
|
137 |
> |
} |
138 |
|
|
139 |
|
return 0; |
140 |
|
} |