{
char *s1, *s2;
- s1 = index(s, ' ');
- s2 = index(s, '\t');
+ s1 = strchr(s, ' ');
+ s2 = strchr(s, '\t');
if (s1) {
if (s2)
return (s1 < s2) ? s1 : s2;
d->line[strlen(p)-1] = '\n';
if (*p == '#')
return __get_next_rpcent(d);
- cp = index(p, '#');
+ cp = strchr(p, '#');
if (cp == NULL) {
- cp = index(p, '\n');
+ cp = strchr(p, '\n');
if (cp == NULL)
return __get_next_rpcent(d);
}
else
return __get_next_rpcent(d);
#else
- cp = index(p, ' ');
+ cp = strchr(p, ' ');
if (cp == NULL) {
- cp = index(p, '\t');
+ cp = strchr(p, '\t');
if (cp == NULL)
return __get_next_rpcent(d);
}
if ((cp = firstwhite(cp)))
*cp++ = '\0';
#else
- cp = index(p, ' ');
+ cp = strchr(p, ' ');
if (cp != NULL)
*cp++ = '\0';
else {
- cp = index(p, '\t');
+ cp = strchr(p, '\t');
if (cp != NULL)
*cp++ = '\0';
}
if ((cp = firstwhite(cp)))
*cp++ = '\0';
#else
- cp = index(p, ' ');
+ cp = strchr(p, ' ');
if (cp != NULL)
*cp++ = '\0';
else {
- cp = index(p, '\t');
+ cp = strchr(p, '\t');
if (cp != NULL)
*cp++ = '\0';
}