Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kPath_BaseName | ( | const kChar * | path,
|  | kChar * | baseName,
|  | kSize | capacity
| ) |  |

Given a file path, returns the base name by stripping the parent directory portion.

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

Parameters

  path | File path.
  baseName | Receives the base name.
  capacity | Maximum number of characters (including null terminator).

Returns
  Operation status.