The mingw port used _fullpath() until now, but the behaviour is not exactly the same as realpath()'s on unix; major difference being that it doesn't return an error for non-existing files, which would bypass main's error checking and bail out without any error message. Also realpath() will return forward slashes only since main() relies on that.
3 lines
63 B
C
3 lines
63 B
C
|
|
extern char *realpath(const char *path, char *resolved_path);
|