Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kPath_Extension | ( | const kChar * | path,
|  | kChar * | extension,
|  | kSize | capacity
| ) |  |

Given a file path, returns the portion of the path containing the file extension.

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

Parameters

  path | File path.
  extension | Receives the file extension portion of the path.
  capacity | Maximum number of characters (including null terminator).

Returns
  Operation status.