mdz_wchar_reserve - maxdz-gmbh/mdz_unicode GitHub Wiki
Reserve nNewCapacity bytes for string. Size and Length do not change.
mdz_bool mdz_wchar_reserve(struct mdz_Wchar* pWchar, size_t nNewCapacity);
| Parameter | Description |
|---|---|
pWchar |
pointer to string returned by mdz_wchar_create() or mdz_wchar_create_attached()
|
nNewCapacity |
new capacity in "wide"-characters to reserve |
| Return | Description |
|---|---|
| mdz_false | if pWchar == NULL
|
| mdz_false | if memory allocation failed (MDZ_ERROR_ALLOCATION) |
| mdz_true | reservation succeeded, or nNewCapacity <= Capacity (MDZ_ERROR_CAPACITY) |