Searched refs:ch (Results 1 - 25 of 80) sorted by relevance

1234

/barrelfish-master/lib/libc/inet/
H A Dinet_net_pton.c67 int n, ch, tmp = 0, dirty, bits; local
70 ch = *src++;
71 if (ch == '0' && (src[0] == 'x' || src[0] == 'X')
79 while ((ch = *src++) != '\0' && isascii(ch) && isxdigit(ch)) {
80 if (isupper(ch))
81 ch = tolower(ch);
82 n = strchr(xdigits, ch)
196 char ch; local
227 char ch; local
270 int ch, saw_xdigit; local
[all...]
H A Dinet_cidr_pton.c89 int n, ch, tmp, bits; local
93 while (ch = *src++, (isascii(ch) && isdigit(ch))) {
96 n = strchr(digits, ch) - digits;
102 } while ((ch = *src++) != '\0' && isascii(ch) && isdigit(ch));
106 if (ch == '\0' || ch
159 int ch, saw_xdigit; local
259 char *cp, ch; local
[all...]
H A Dinet_pton.c82 int saw_digit, octets, ch; local
88 while ((ch = *src++) != '\0') {
91 if ((pch = strchr(digits, ch)) != NULL) {
104 } else if (ch == '.' && saw_digit) {
138 int ch, seen_xdigits; local
151 while ((ch = *src++) != '\0') {
154 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL)
155 pch = strchr((xdigits = xdigits_u), ch);
163 if (ch == ':') {
181 if (ch
[all...]
/barrelfish-master/lib/libc/iconv/
H A Dcitrus_prop.c83 int ch, cutlim, n; \
90 ch = _memstream_getc(ms); \
91 p = strchr(xdigit, _bcs_toupper(ch)); \
99 _memstream_ungetc(ms, ch); \
112 int base, ch, neg; \
115 ch = _memstream_getc(ms); \
117 switch (ch) { \
121 ch = _memstream_getc(ms); \
124 if (ch == '0') { \
126 ch
150 int base, ch; local
200 int ch, errnum; local
249 int ch, errnum, quot; local
322 int ch; local
346 int ch, errnum; local
431 int ch, errnum; local
[all...]
/barrelfish-master/lib/tommath/
H A Dbn_mp_fread.c21 int err, ch, neg, y; local
27 ch = fgetc(stream);
28 if (ch == '-') {
30 ch = fgetc(stream);
38 if (mp_s_rmap[y] == ch) {
54 ch = fgetc(stream);
H A Dbn_mp_read_radix.c22 char ch; local
51 ch = (char) ((radix < 36) ? toupper ((int)*str) : *str);
53 if (ch == mp_s_rmap[y]) {
/barrelfish-master/lib/libc/nameser/
H A Dns_ttl.c88 int ch; local
90 for (p = odst; (ch = *p) != '\0'; p++)
91 if (isascii(ch) && isupper(ch))
92 *p = tolower(ch);
101 int ch, digits, dirty; local
107 while ((ch = *src++) != '\0') {
108 if (!isascii(ch) || !isprint(ch))
110 if (isdigit(ch)) {
[all...]
/barrelfish-master/lib/libc/string/
H A Dstrchr.c40 strchr(const char *p, int ch) argument
44 c = ch;
H A Dstrchrnul.c39 __strchrnul(const char *p, int ch) argument
43 c = ch;
H A Dstrrchr.c40 strrchr(const char *p, int ch) argument
45 c = ch;
/barrelfish-master/lib/libc/regex/
H A Dregex2.h126 CHIN1(cset *cs, wint_t ch) argument
130 assert(ch >= 0);
131 if (ch < NC)
132 return (((cs->bmp[ch >> 3] & (1 << (ch & 7))) != 0) ^
135 if (ch == cs->wides[i])
138 if (cs->ranges[i].min <= ch && ch <= cs->ranges[i].max)
141 if (iswctype(ch, cs->types[i]))
147 CHIN(cset *cs, wint_t ch) argument
[all...]
/barrelfish-master/kernel/
H A Dgdb_stub.c87 static int fromhex(char ch) argument
89 if ((ch >= 'a') && (ch <= 'f')) {
90 return ch - 'a' + 10;
91 } else if ((ch >= '0') && (ch <= '9')) {
92 return ch - '0';
93 } else if ((ch >= 'A') && (ch <= 'F')) {
94 return ch
141 uint8_t ch; local
172 uint8_t ch; local
200 char ch = 0; /* shut up a useless deputy warning */ local
255 char ch = buffer[pos]; local
[all...]
/barrelfish-master/lib/libc/resolv/
H A Dres_comp.c159 int pch = PERIOD, ch = *dn++; local
161 while (ch != '\0') {
164 if (periodchar(ch)) {
167 if (!borderchar(ch))
170 if (!borderchar(ch))
173 if (!middlechar(ch))
176 pch = ch, ch = nch;
202 int ch, escaped = 0; local
209 while ((ch
230 int ch; local
[all...]
/barrelfish-master/lib/libc/stdio/
H A Dputc.c61 putc_unlocked(int ch, FILE *fp) argument
64 return (__sputc(ch, fp));
H A Dputchar.c66 putchar_unlocked(int ch) argument
69 return (__sputc(ch, stdout));
/barrelfish-master/lib/libc/locale/
H A Dgb18030.c97 int ch, len, ocount; local
129 ch = (unsigned char)*s++;
130 if (ch <= 0x7f) {
132 wch = ch;
133 } else if (ch >= 0x81 && ch <= 0xfe) {
134 wch = ch;
137 ch = (unsigned char)*s++;
138 if ((ch >= 0x40 && ch <
[all...]
H A Dbig5.c70 wchar_t ch; member in struct:__anon997
92 return (ps == NULL || ((const _BIG5State *)ps)->ch == 0);
113 if ((bs->ch & ~0xFF) != 0) {
129 if (bs->ch != 0) {
134 wc = (bs->ch << 8) | (*s & 0xFF);
137 bs->ch = 0;
146 bs->ch = wc;
171 if (bs->ch != 0) {
H A Dgbk.c67 wchar_t ch; member in struct:__anon1004
89 return (ps == NULL || ((const _GBKState *)ps)->ch == 0);
110 if ((gs->ch & ~0xFF) != 0) {
126 if (gs->ch != 0) {
131 wc = (gs->ch << 8) | (*s & 0xFF);
134 gs->ch = 0;
143 gs->ch = wc;
168 if (gs->ch != 0) {
/barrelfish-master/lib/libc/net/
H A Dbase64.c197 int tarindex, state, ch; local
204 while ((ch = *src++) != '\0') {
205 if (isspace((unsigned char)ch)) /* Skip whitespace anywhere. */
208 if (ch == Pad64)
211 pos = strchr(Base64, ch);
271 if (ch == Pad64) { /* We got a pad char. */
272 ch = *src++; /* Skip it, get next. */
280 for ((void)NULL; ch != '\0'; ch = *src++)
281 if (!isspace((unsigned char)ch))
[all...]
/barrelfish-master/lib/posixcompat/
H A Dinet_pton.c80 int saw_digit, octets, ch; local
87 while ((ch = *src++) != '\0') {
90 if ((pch = strchr(digits, ch)) != NULL) {
103 } else if (ch == '.' && saw_digit) {
139 int ch, seen_xdigits; local
152 while ((ch = *src++) != '\0') {
155 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL)
156 pch = strchr((xdigits = xdigits_u), ch);
164 if (ch == ':') {
182 if (ch
[all...]
/barrelfish-master/lib/openssl-1.0.0d/crypto/asn1/
H A Da_mbstr.c382 int ch; local
384 ch = (int) value;
389 if((ch >= 'a') && (ch <= 'z')) return 1;
390 if((ch >= 'A') && (ch <= 'Z')) return 1;
391 if((ch >= '0') && (ch <= '9')) return 1;
392 if ((ch == ' ') || strchr("'()+,-./:=?", ch)) retur
[all...]
/barrelfish-master/lib/libc/gen/
H A Dreadpassphrase.c50 char ch, *p, *end; local
130 while ((nr = _read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r') {
133 ch &= 0x7f;
134 if (isalpha((unsigned char)ch)) {
136 ch = (char)tolower((unsigned char)ch);
138 ch = (char)toupper((unsigned char)ch);
[all...]
/barrelfish-master/lib/openssl-1.0.0d/crypto/bio/
H A Db_dump.c83 unsigned char ch; local
120 ch=((unsigned char)*(s+i*dump_width+j)) & 0xff;
121 BIO_snprintf(tmp,sizeof tmp,"%02x%c",ch,
131 ch=((unsigned char)*(s+i*dump_width+j)) & 0xff;
134 ((ch>=' ')&&(ch<='~'))?ch:'.');
137 ((ch>=os_toascii[' '])&&(ch<=os_toascii['~']))
138 ? os_toebcdic[ch]
[all...]
H A Db_print.c178 char ch; local
192 ch = *format++;
195 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen))
200 if (ch == '%')
203 doapr_outch(sbuffer,buffer, &currlen, maxlen, ch);
204 ch = *format++;
207 switch (ch) {
210 ch = *format++;
214 ch = *format++;
218 ch
[all...]
/barrelfish-master/lib/skb/
H A Dskb_snprintf.c191 char ch; local
208 ch = *format++;
211 if (ch == '\0')
216 if (ch == '%')
219 DOPR_OUTCH(buffer, currlen, maxlen, ch);
220 ch = *format++;
223 switch (ch) {
226 ch = *format++;
230 ch = *format++;
234 ch
[all...]

Completed in 144 milliseconds

1234