| 1 | address | I/O | POINTER |
| 2 | new_size | Input | INT4 |
| 3 | fc | Output | FEEDBACK |
The Reallocate Storage (CEECZST) API changes the size of a previously allocated storage block, preserving the contents.
None.
In effect, reallocation of a storage block is accomplished by allocating a new storage block, of size new_size, and copying the contents of the old block to the new block.
A message severity of 10 or less represents success. If the severity is greater than 10:
| CEE0000 | The API completed successfully |
| Severity: 00 | |
| CEE0802 | The storage headers are damaged |
| Severity: 40 | |
| CEE0808 | Requested storage size is not valid |
| Severity: 30 | |
| CEE0810 | The starting address for reallocation is not valid |
| Severity: 30 | |
| CEE0813 | Insufficient storage available to satisfy the request |
| Severity: 30 |
Note: Because the new storage may be allocated at a different location than the existing allocation, any pointers that referred to the old storage are no longer valid. Continued use of such pointers will give unpredictable, or incorrect results.
| Top | ILE CEE APIs | APIs by category |