diff options
author | Greg McGary <greg@mcgary.org> | 1999-04-12 07:56:55 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 1999-04-12 07:56:55 +0000 |
commit | a05ba261e9c40c9ef95b286d7a8abff519551295 (patch) | |
tree | a6ba2a8343cfcc9838e52b5ef4a75c238c8598b7 /libidu/idfile.c | |
parent | 258a961c23341294b12a317ad6534b30ad02d987 (diff) | |
download | idutils-a05ba261e9c40c9ef95b286d7a8abff519551295.tar.gz idutils-a05ba261e9c40c9ef95b286d7a8abff519551295.tar.bz2 idutils-a05ba261e9c40c9ef95b286d7a8abff519551295.zip |
* lib/strsep.c: Add file.
* lib/strtok.c: Remove file.
* configure.in: Check for strsep instead of strtok.
* libidu/idfile.c (locate_id_file_name): Use strsep instead of strtok.
* libidu/scanners.c (language_save_arg, language_save_arg,
tokenize_args_string): Ditto.
* libidu/walker.c (append_strings_to_vector, vectorize_string): Ditto.
Diffstat (limited to 'libidu/idfile.c')
-rw-r--r-- | libidu/idfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libidu/idfile.c b/libidu/idfile.c index d27c4b3..1b46ab7 100644 --- a/libidu/idfile.c +++ b/libidu/idfile.c @@ -1,5 +1,5 @@ /* idfile.c -- read & write mkid database file header - Copyright (C) 1986, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1986, 1995, 1996, 1999 Free Software Foundation, Inc. Written by Greg McGary <gkm@gnu.ai.mit.edu> This program is free software; you can redistribute it and/or modify @@ -54,7 +54,7 @@ locate_id_file_name (char const *arg) if (id_path) { id_path = strdup (id_path); - arg = strtok (id_path, ":"); + arg = strsep (&id_path, ":"); /* FIXME: handle multiple ID file names */ } } |