GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72636
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
find_etc.c File Reference
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <grass/gis.h>
Include dependency graph for find_etc.c:

Go to the source code of this file.

Functions

char * G_find_etc (const char *name)
 searches for a file from the etc search list in GRASS_ADDON_ETC returns the full path to where the file was found. More...
 

Function Documentation

char* G_find_etc ( const char *  name)

searches for a file from the etc search list in GRASS_ADDON_ETC returns the full path to where the file was found.

note: rejects all names that begin with "."

Parameters
namefile name to look for
Returns
pointer to a string with full path to where file was found, or NULL if not found

Definition at line 63 of file find_etc.c.