Go to the first, previous, next, last section, table of contents.
#include <libc/symlink.h> int __solve_symlinks(const char *symlink_path, char *real_path);
This function fully resolves given symlink in symlink_path---all path components and all symlink levels are resolved. The returned path in real_path is guaranteed to be symlink-clean and understandable by DOS. If symlink_path does not contain symlinks at all, it is simply copied to real_path.
Zero in case of error (and errno
set to the appropriate
error code), non-zero in case of success.
not ANSI, not POSIX
#include <libc/symlink.h> #include <stdio.h> __solve_symlinks(fn, file_name); printf("File %s is really %s\n", fn, file_name);
Go to the first, previous, next, last section, table of contents.