I\'m looking for an example of how to use the realpath function in a C program. I can\'t seem to find one on the web or in any of my C programming books.
Like this:
int main(int argc, char *argv[]) { ... char *symlinkpath = argv[1]; char actualpath [PATH_MAX]; char *ptr; ptr = realpath(symlinkpath, actualpath); ... }
Borrowed from here