NextFilename

[ XITE Reference Manual | XITE home ]

Name

NextFilename - Extract next string in a ":"-separated list of strings.

Syntax

 #include <xite/utils.h>

 void NextFilename( char** filenames,
    char** next );

Description

Return in *next the substring starting at the address given by *filenames, ending before the next ":". Update *filenames to refer to the first character after the extracted substring. If no ":" found, return *filenames equal to NULL. If length of substring is zero, return *next equal to NULL.

Required memory space for *next is allocated by this function. It should be freed (with free(3)) when not needed any more.

See also

envfindfilemulti(3)

Author

Svein Bøe

Doc

Svein Bøe

Id

$Id: envfindfile.c,v 1.34 1996/12/12 19:40:08 svein Exp $