From: Joey Schulze Date: Sun, 18 Nov 2001 08:00:01 +0000 (+0000) Subject: Converted index() into strchr() which is no Linuxism anymore and also X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=commitdiff_plain;h=5c04191ccc8b40a8a78fd5dbe1b89ef00932fe89;ds=sidebyside Converted index() into strchr() which is no Linuxism anymore and also available on other *nix systems or a Cygwin environment. --- diff --git a/dtaus.c b/dtaus.c index c1e5727..e8f935e 100644 --- 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);