Zen API

- Home
- Topics
- Types
- Files

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

  path | File or directory path.
  directory | Receives the parent directory.
  capacity | Maximum number of characters (including null terminator).

Returns
  Operation status.