50
* Normalize the unix pathname in src eliminating . and .. sequences
51
* to yield an absolute path. Returns 0 on success, and -1 on error.
53
int norm(char* dest, int len, const char* src)
59
enum { L0, L1, L2, L3, L4 } state = L0;
60
assert(strlen(src) <= len);
65
enum { slash, dot, other } cls;