#include #include #include #include #include int main(void) { char* path = realpath("stdlib/realpath.c", NULL); if (!path) { perror("realpath"); return EXIT_FAILURE; } puts(path); free(path); path = malloc(PATH_MAX); memset(path, 0, PATH_MAX); realpath("stdlib/realpath.c", path); if (!path) { perror("realpath"); free(path); return EXIT_FAILURE; } puts(path); free(path); }