split

Break a path into "head" and "tail" components. For example:

  • "/a/b/c" -> "/a","b/c"
  • "a/b/c" -> "a","b/c"
inout(char)[]
split
(
inout(char)[] path
,
out inout(char)[] head
,
out inout(char)[] tail
)

Meta