12 lines
344 B
C
12 lines
344 B
C
#include <errno.h>
|
|
#include <stdlib.h> /* getenv(3), malloc(3) */
|
|
#include <string.h> /* memcpy(3) */
|
|
|
|
/* For the shell variable $PATH */
|
|
#define PATH_NAME "PATH"
|
|
#define PATH_DELIMITER ':'
|
|
|
|
/* Returns a list of the current paths ordered from first to last priority.
|
|
* output must be freed and *output must be freed! */
|
|
char **getpaths(void);
|