diff options
Diffstat (limited to 'src/bin/realpath.c')
-rw-r--r-- | src/bin/realpath.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/realpath.c b/src/bin/realpath.c new file mode 100644 index 0000000..e47f020 --- /dev/null +++ b/src/bin/realpath.c @@ -0,0 +1,10 @@ +#include <stdio.h> +#include <sys/param.h> +#include <stdlib.h> + +int main(int argc,char *argv[]) { + char path[MAXPATHLEN+1]; + if(!realpath(argv[1],path)) return 1; + puts(path); + return 0; +} |