]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/path/path.h
path: expose separator constants.
[ccan] / ccan / tal / path / path.h
index 5678fd1a99e6f87280d1089d089b988704450201..2f7f608b23885285c606da81280d650dd8cf4cbe 100644 (file)
@@ -165,4 +165,8 @@ char **path_split(const tal_t *ctx, const char *path TAKES);
  */
 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 */