FileName.splitPath

Split path (such as that returned by getenv("PATH")) into pieces, each piece is mem.xmalloc'd Handle double quotes and ~. Pass the pieces to sink()

struct FileName
nothrow static
void
splitPath
(
int delegate
(
const(char)*
)
nothrow
sink
,
const(char)* path
)

Parameters

sink int delegate
(
const(char)*
)
nothrow

send the path pieces here, end when sink() returns !=0

path const(char)*

the path to split up.

Meta