Home | History | Annotate | Download | only in inet

Lines Matching full:ascii

51 inet_nsap_addr(const char *ascii, u_char *binary, int maxlen) {
55 assert(ascii != NULL);
58 if (ascii[0] != '0' || (ascii[1] != 'x' && ascii[1] != 'X'))
60 ascii += 2;
62 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) {
71 c = *ascii++;
90 inet_nsap_ntoa(int binlen, const u_char *binary, char *ascii) {
98 if (ascii)
99 start = ascii;
101 ascii = tmpbuf;
105 *ascii++ = '0';
106 *ascii++ = 'x';
113 *ascii++ = nib + (nib < 10 ? '0' : '7');
115 *ascii++ = nib + (nib < 10 ? '0' : '7');
117 *ascii++ = '.';
119 *ascii = '\0';