Size: 372 bytes.


 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
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-3:8080 in 4ms.