2008-06-30 21:53:51 -04:00
|
|
|
#ifndef __DIRPATH_H_
|
|
|
|
#define __DIRPATH_H_
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#define PATHSEP '\\'
|
|
|
|
#define PATHSEPSTRING "\\"
|
|
|
|
#define PATHLISTSEP ';'
|
|
|
|
#define PATHLISTSEPSTRING ";"
|
2019-08-09 07:02:02 -04:00
|
|
|
#define ISPATHSEP(c) ((c) == '/' || (c) == '\\')
|
2008-06-30 21:53:51 -04:00
|
|
|
#define MAXPATHLEN 1024
|
|
|
|
#else
|
|
|
|
#define PATHSEP '/'
|
|
|
|
#define PATHSEPSTRING "/"
|
|
|
|
#define PATHLISTSEP ':'
|
|
|
|
#define PATHLISTSEPSTRING ":"
|
2019-08-09 07:02:02 -04:00
|
|
|
#define ISPATHSEP(c) ((c) == '/')
|
2008-06-30 21:53:51 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void get_cwd(char *buf, size_t size);
|
|
|
|
int set_cwd(char *buf);
|
|
|
|
char *get_exename(char *buf, size_t size);
|
2008-09-10 22:37:38 -04:00
|
|
|
void path_to_dirname(char *path);
|
2008-06-30 21:53:51 -04:00
|
|
|
|
|
|
|
#endif
|