3 cleanname \- clean a path name
10 char* cleanname(char *filename)
15 and by lexical processing only returns the shortest string that names the same (possibly
17 It eliminates multiple and trailing slashes, and it lexically interprets
21 directory components in the name.
22 The string is overwritten in place.
26 can return is two bytes: the null-terminated string
30 must contain room for at least two bytes.
32 .B /sys/src/libc/port/cleanname.c