SHTK_FS_JOIN_PATHS(3)
SHTK_FS_JOIN_PATHS(3) Library Functions Manual SHTK_FS_JOIN_PATHS(3)

shtk_fs_join_pathsConcatenates a series of path entries

shtk_import fs

shtk_fs_join_paths path1 [.. pathN]

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).

shtk_fs_join_paths returns 0.

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

shtk(3), shtk_fs(3)

shtk_fs_join_paths first appeared in shtk 1.7.

September 18, 2016 Debian