MAN page from RedHat Other XITE-3.3-3.i386.rpm
ENVFINDFILE
Section: C Library Functions (3)
Updated: 16 Mar 1998
Index
NAME
envfindfile, envfindfilemulti - search for file in anenvironment path
SYNTAX
#include <
xite/utils.h>
char *envfindfile( char* environment,
char* file );
char *envfindfilemulti(char *environment,
char *file);
DESCRIPTION
Search for the file
filein directoriesspecified by the environment variable.If environment == NULL, dir path = "."
RETURN VALUE
envfindfileand
envfindfilemultiboth return fullfile spec of the file or NULL. If the file was foundin more than one directory,
envfindfilemultireturnsall the filenames separated by
:.The memory space needed for the returned value isallocated by these functions. It should be freed(with free(3)) when not needed any more.
EXAMPLE
char *filename, envfindfile();
filename = endfindfile("PROG_PATH",".progrc");
AUTHOR
Otto Milvang and Svein Bøe
ID $ID
envfindfile.c,v 1.34 1996/12/12 19:40:08 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RETURN VALUE
- EXAMPLE
- AUTHOR
- ID $ID
This document was created byman2html,using the manual pages.