1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// cs/q/simplify_path/simplify_path.h #ifndef CS_Q_SIMPLIFY_PATH_SIMPLIFY_PATH_H #define CS_Q_SIMPLIFY_PATH_SIMPLIFY_PATH_H #include <stddef.h> /** * Reduces the given Unix file path to it's canonical form. * * @param s The messy path. * @param n Length of given string. */ char* SimplifyPath(const char* s, size_t n); #endif // CS_Q_SIMPLIFY_PATH_SIMPLIFY_PATH_H