MIGRATION (ghost) functions
LIBRARY ROUTINE
gw_read_progfile - read and parse a Khoros 1.0 prog file
LIBRARY CALL
char **gw_read_progfile(
kfile *file)
INPUT
- file - open kfile pointer to read from
OUTPUT
none
RETURN VALUE
prog_spec - array of strings, each of which holds a block
of text pulled from the .prog file.
DESCRIPTION
This routine reads the program specification
provided in the .prog file.
It fills out the global **prog_spec array of character blocks,
each of which is referenced by an index with a #define'd name
that indicates the key from which it came.
For instance, after _kgh_get_prog_info is called successfully,
prog_spec[AUTHORS] will hold the block of text taken from
the .prog file, between the begin key of "-authors" and the
end key of "-authors_end"; prog_spec[Restrictions] will
have the text found between keys "-restrictions" and
"-restrictions_end", and so on.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$MIGRATION/objects/library/ghost/src/readprog.c
SEE ALSO
ghost(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.