break;
}
/* chop off remainder of line */
- if (cp = index(rethlist[hlindex], ' '))
+ if (cp = strchr(rethlist[hlindex], ' '))
*cp = '\0';
- if (cp = index(rethlist[hlindex], '\t'))
+ if (cp = strchr(rethlist[hlindex], '\t'))
*cp = '\0';
- if (cp = index(rethlist[hlindex], '\n'))
+ if (cp = strchr(rethlist[hlindex], '\n'))
*cp = '\0';
if (++hlindex >= hlsize) {
/* need larger pointer array */
if (!(retrealms = (char **)calloc(2, sizeof(*retrealms))))
return ENOMEM;
- domain = index(host, '.');
+ domain = strchr(host, '.');
/* prepare default */
if (domain) {
linebuf[BUFSIZ-1] = '\0';
newline = NULL;
/* nuke the newline if it exists */
- if (newline = index(linebuf, '\n'))
+ if (newline = strchr(linebuf, '\n'))
*newline = '\0';
if (!strcmp(linebuf, princname)) {
isok = TRUE;
/* fgets always null-terminates the returned string */
/* replace newline with null */
- if (ptr = index(return_pwd, '\n'))
+ if (ptr = strchr(return_pwd, '\n'))
*ptr = '\0';
else /* flush rest of input line */
do {
}
(void) putchar('\n');
- if (ptr = index(readin_string, '\n'))
+ if (ptr = strchr(readin_string, '\n'))
*ptr = '\0';
else /* need to flush */
do {