FreeBSD/usr.bin/catman/catman.c
/*
 * Checks whether a file is a symbolic link.
 */
Checks whether a file is a symbolic link.
Checks whether a file is a symbolic link .
static int
is_symlink(char *path)
{
	struct stat st;
	return lstat(path, &st) >= 0 && S_ISLNK(st.st_mode);
}
static int is_symlink ( char * path ) { struct stat st ; return lstat ( path , & st ) >= 0 && S_ISLNK ( st . st_mode ) ; }
Checks whether a file is a symbolic link.
Checks whether a file is a symbolic link .