shithub: femtolisp

ref: 2e916a41db4a82fa7f90ae1805dc7b0dc8c43d3a
dir: /llt/dirpath.h/

View raw version
#ifndef __DIRPATH_H_
#define __DIRPATH_H_

#define PATHSEP '/'
#define PATHSEPSTRING "/"
#define PATHLISTSEP ':'
#define PATHLISTSEPSTRING ":"
#define ISPATHSEP(c) ((c)=='/')

void get_cwd(char *buf, size_t size);
int set_cwd(char *buf);
char *get_exename(char *buf, size_t size);
void path_to_dirname(char *path);

#endif