blob: 1bd43216f66b7e9395fa343fa174c826e41da3d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "cache.h"
int main(int argc, char **argv)
{
if (argc == 3 && !strcmp(argv[1], "normalize_absolute_path")) {
char *buf = xmalloc(strlen(argv[2])+1);
int rv = normalize_absolute_path(buf, argv[2]);
assert(strlen(buf) == rv);
puts(buf);
}
return 0;
}
|