Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kQueue_Construct | ( | kQueue * | queue,
|  | kType | itemType,
|  | kSize | initialCapacity,
|  | kAlloc | allocator
| ) |  |

Constructs a kQueue object.

Parameters

  queue | Receives constructed queue object.
  itemType | Type of queue element.
  initialCapacity | Capacity initially reserved for queue items.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.