Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kPath_ToCanonical | ( | const kChar * | path,
|  | kChar * | normalized,
|  | kSize | capacity
| ) |  |

Transforms all path separators to normal form, canonicalizes the path by collapsing redundant separators and removes trailing slashes.

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

Parameters

  path | Input path, in native or mixed form.
  normalized | Receives transformed path, in normal form.
  capacity | Maximum number of characters (including null terminator) for normalized path.

Returns
  Operation status.