From: Joey Schulze Date: Fri, 6 Aug 2004 20:50:09 +0000 (+0000) Subject: Use strchr(3) instead of index(3) since it is POSIX compliant and not X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=commitdiff_plain;h=3997daa295f3d13bfcadb51fae33450dd8dae30c;hp=1dd576aae6f0e3e9b2a06aee5dd157bea774bce9 Use strchr(3) instead of index(3) since it is POSIX compliant and not only BSD 4.3 compliant. --- diff --git a/dtaus.c b/dtaus.c index 69177f8..382bc99 100644 --- a/dtaus.c +++ b/dtaus.c @@ -1300,7 +1300,7 @@ int control2dtaus (char *ccontrol, char *cdtaus, char *cbeleg, char *ccheck, cha /* Convert commast to dots for later processing */ for (i=0; line[i]; i++) if (line[i] == ',') line[i] = '.'; - if ((cp = index (line, '.')) == NULL) { + if ((cp = strchr (line, '.')) == NULL) { if (!(valC[recindex] = (char *)malloc (strlen(line)+4))) return 0; sprintf (valC[recindex], "%s.00", line);