summaryrefslogtreecommitdiff
path: root/src/shared/include/camellia/path.h
blob: 8efa0d403fd02f8eba70a80cad527f05c34cb838 (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once
#include <stddef.h>

#define PATH_MAX 512

/** Reduce a path to its simplest form.
 *
 * @return length of the string in *out, always less than len. Negative if the path was invalid.
 */
int path_simplify(const char *in, char *out, size_t len);