Lines Matching refs:ch
25 register int ch;
27 ch = getc(file);
28 if (ch == '#') {
30 ch = getc(file);
31 } while (ch != '\n' && ch != EOF);
33 return ch;
42 register int ch;
47 ch = text_getc(file);
48 if (ch == EOF) {
49 *termchar = ch;
52 } while (isspace(ch));
54 if (! isdigit(ch)) {
55 *termchar = ch;
59 val = ch - '0';
60 while ((ch = text_getc(file)) != EOF) {
61 if (! isdigit(ch))
64 val += ch - '0';
67 *termchar = ch;
134 register int ch;
138 ch = *termchar;
139 while (ch != EOF && isspace(ch))
140 ch = text_getc(file);
141 if (isdigit(ch)) { /* oops, put it back */
142 if (ungetc(ch, file) == EOF)
144 ch = ' ';
149 if (ch != EOF && ch != ';' && ch != ':')
150 ch = ' ';
152 *termchar = ch;
274 char ch;
278 ch = ','; /* if not set by sscanf, will be ',' */
279 if (sscanf(arg, "%d%c", &val, &ch) < 1)
281 if (ch != ',') /* syntax check */