在 Visual Studio 2017 中,realpath 函数不在
例如:
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char** argv) {
if (argc != 2) {
printf("Usage: myprogram <path>\n");
return 1;
}
char* abs_path = _fullpath(NULL, argv[1], 0);
printf("The absolute path is: %s\n", abs_path);
free(abs_path);
return 0;
}
标签:realpath,头文件,函数,未定义,abs,path,2017
From: https://www.cnblogs.com/mrpeng2333/p/16975546.html