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:
f69cf07
)
Converted index() into strchr() which is no Linuxism anymore and also
author
Joey Schulze
<joey@infodrom.org>
Sun, 18 Nov 2001 08:00:01 +0000
(08:00 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 18 Nov 2001 08:00:01 +0000
(08:00 +0000)
available on other *nix systems or a Cygwin environment.
dtaus.c
patch
|
blob
|
history
diff --git
a/dtaus.c
b/dtaus.c
index
c1e5727
..
e8f935e
100644
(file)
--- a/
dtaus.c
+++ b/
dtaus.c
@@
-366,8
+366,8
@@
char *extract_ident (char *line)
static char word[30];
if (strlen(line) > 0) {
- x =
index
(line, ' ');
- y =
index
(line, '\t');
+ x =
strchr
(line, ' ');
+ y =
strchr
(line, '\t');
if (!x && !y) {
strncpy(word, line, 29);