SHTK_FS_JOIN_PATHS(3)

NAME
shtk_fs_join_paths - Concatenates a series of path entries

LIBRARY
shtk_import fs

SYNOPSIS
shtk_fs_join_paths path1 [.. pathN]

DESCRIPTION
The shtk_fs_join_paths function takes a collection of path components and concatenates them, printing the result to stdout.

The resulting path is normalized according to the rules described in shtk_fs_normalize_path(3).

RETURN VALUES
shtk_fs_join_paths returns 0.

EXAMPLES

    shtk_fs_join_paths foo//bar /baz/.  # Prints ./foo/bar/baz
    shtk_fs_join_paths /bin ls  # Prints /bin/ls

SEE ALSO
shtk(3), shtk_fs(3)

HISTORY
shtk_fs_join_paths first appeared in shtk 1.7.