search for: unscanchar

Displaying 1 result from an estimated 1 matches for "unscanchar".

Did you mean: scanchar
1999 Oct 30
1
read.table problem on Linux/Alpha (seg faults caused by isspace(R_EOF)) (PR#303)
...OF) @@ -647,7 +647,7 @@ } } else { - while (!isspace(c=scanchar()) && c != R_EOF) + while ( (c=scanchar()) != R_EOF && !isspace(c)) ; if (c==R_EOF) c='\n'; unscanchar(c); When the scanchar() returns R_EOF (=65535 #defined in src/include/Defn.h), isspace(R_EOF) seq-faults. By switching the order of two conditions, I could get around with it. I just made a test to see the behavior of isspace() by giving isspace(65535). It seg-faults in both Linux/alpha and i...