Lines Matching refs:charaddr
75 char *charaddr;
80 if (!(charaddr = getenv(envname)))
85 envname, charaddr, strlen(charaddr));
88 if ((int)strlen(charaddr) & 1)
91 length = (strlen(charaddr) + 1) / 2;
96 return(nlsc2addr(buf->buf, buf->maxlen, charaddr));
191 * B. If 'charaddr' does not contain a series of octets
192 * (strlen(charaddr) must be even). (rc = -2)
193 * C. Any character in 'charaddr' is not an ASCII hex digit.
204 nlsc2addr(char *addr, int maxlen, char *charaddr)
211 if (strlen(charaddr) & 1)
214 for (len = 0; ((maxlen--) && (*charaddr)); ++len) {
216 c = *charaddr++;
229 return(*charaddr ? -2 : len);