klist_filelist - create a linked list of strings from a file
LIBRARY CALL
klist *klist_filelist(
char *filename,
char *global_dir,
int sort_flag)
INPUT
filename - base name of the files to be listed.
global_dir - the global directory is used as a prefix
to the filename
sort_flag - a flag indicating whether we are to sort
the link list before returning
OUTPUT
none
RETURN VALUE
The head of the linked list to the names in the file upon
successfull completion of this routine, otherwise NULL is
returned.
DESCRIPTION
This module is used to create a linked list from the
supplied file. It reads the lines out of the
specified file, and returns them in a linked list of
strings. The programmer also has the option of
specifying if they want the resulting string sorted or not.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/list.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.