Commit ec1f7161 authored by Rusty Russell's avatar Rusty Russell

path: expose separator constants.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent e2d15a2b
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
#define PATH_SEP_STR "/"
#define PATH_SEP (PATH_SEP_STR[0])
char *path_cwd(const tal_t *ctx) char *path_cwd(const tal_t *ctx)
{ {
size_t len = 64; size_t len = 64;
......
...@@ -165,4 +165,8 @@ char **path_split(const tal_t *ctx, const char *path TAKES); ...@@ -165,4 +165,8 @@ char **path_split(const tal_t *ctx, const char *path TAKES);
*/ */
size_t path_ext_off(const char *path); size_t path_ext_off(const char *path);
/* Separator constants */
#define PATH_SEP_STR "/"
#define PATH_SEP (PATH_SEP_STR[0])
#endif /* CCAN_PATH_H */ #endif /* CCAN_PATH_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment