Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kPath_Directory ( const kChar path,
kChar directory,
kSize  capacity 
)

Returns the parent directory for a given file or directory path.

The directory (output) argument can refer to the same memory address as the path (input) argument.

If the path contains embedded relative path components, this function will not attempt to evaluate the meaning of those components.

Parameters
pathFile or directory path.
directoryReceives the parent directory.
capacityMaximum number of characters (including null terminator).
Returns
Operation status.