4 |
|
/* |
5 |
|
* Read white space separated words from stream |
6 |
|
* |
7 |
< |
* External symbols declared in standard.h |
7 |
> |
* External symbols declared in rtio.h |
8 |
|
*/ |
9 |
|
|
10 |
|
#include "copyright.h" |
11 |
|
|
12 |
< |
#include <stdio.h> |
12 |
> |
#include "rtio.h" |
13 |
|
|
14 |
|
#include <ctype.h> |
15 |
|
|
28 |
|
c = getc(fp); |
29 |
|
while (isspace(c)); |
30 |
|
/* check for quote */ |
31 |
< |
if ((c == '"' | c == '\'')) { |
31 |
> |
if ((c == '"') | (c == '\'')) { |
32 |
|
quote = c; |
33 |
|
c = getc(fp); |
34 |
|
} |
44 |
|
c = getc(fp); |
45 |
|
} while (c != EOF && !(quote ? c==quote : isspace(c))); |
46 |
|
*cp = '\0'; |
47 |
< |
if ((c != EOF & !quote)) /* replace space */ |
47 |
> |
if ((c != EOF) & (!quote)) /* replace space */ |
48 |
|
ungetc(c, fp); |
49 |
|
return(s); |
50 |
|
} |