libfs
stable

Contents:

  • libfs
  • Advanced Usages
  • Changelog

API Reference:

  • Functions
    • fs_absolute
    • fs_basename
    • fs_close_dir
    • fs_close_file
    • fs_copy
    • fs_copy_file
    • fs_current_dir
    • fs_delete_dir
    • fs_delete_file
    • fs_dirname
    • fs_exist
    • fs_file_size
    • fs_init_hooks
    • fs_is_directory
    • fs_is_file
    • fs_is_symlink
    • fs_iter_file
    • fs_join_path
    • fs_make_dir
    • fs_next_char
    • fs_open_dir
    • fs_read_dir
    • fs_read_file
    • fs_read_file_buffer
    • fs_rsplit
    • fs_temp_dir
    • fs_write_file
  • Structures
  • Defines

Test API Reference:

  • Functions
  • Defines
libfs
  • Functions
  • fs_is_symlink
  • Edit on GitHub

fs_is_symlink

int fs_is_symlink(const char *path)

Checks if a path corresponds to a symbolic link.

if (!fs_is_symlink("./somesymlink"))
{
    print("path is not a symbolic link");
}
else
{
    print("path is a symbolic link");
}

Parameters

path – [in] Some null-terminated path

Returns

If path points to an existing symbolic link.

Previous Next

© Copyright 2022, Nauja. Revision ae9855d5.

Built with Sphinx using a theme provided by Read the Docs.