projects
/
infodrom
/
dtaus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1dd576a
)
Use strchr(3) instead of index(3) since it is POSIX compliant and not
author
Joey Schulze
<joey@infodrom.org>
Fri, 6 Aug 2004 20:50:09 +0000
(20:50 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 6 Aug 2004 20:50:09 +0000
(20:50 +0000)
only BSD 4.3 compliant.
dtaus.c
patch
|
blob
|
history
diff --git
a/dtaus.c
b/dtaus.c
index
69177f8
..
382bc99
100644
(file)
--- 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] = '.';
/* 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);
if (!(valC[recindex] = (char *)malloc (strlen(line)+4)))
return 0;
sprintf (valC[recindex], "%s.00", line);