In unistd.h, I have a C function readlinkthat follows a link down one goal. Coreutil readlinkhas an excellent option -ffor recursively following each symbolic link. How can I get this behavior in C ++? Acceleration library, posix function that I don't know about, etc.?
** Edit ** just looked at the man page realpath. Does this give the same "canonical" decomposition readlink -f?
source
share