http://www.linux.or.jp/JM/html/LDP_man-pages/man3/realpath.3.html
#include <limits.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char **argv) { char buf[PATH_MAX]; realpath( argv[1], buf ); printf("%s\n",buf); return 0; }
http://www.linux.or.jp/JM/html/LDP_man-pages/man3/realpath.3.html
#include <limits.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char **argv) { char buf[PATH_MAX]; realpath( argv[1], buf ); printf("%s\n",buf); return 0; }