Qp2free()--Free IBM PASE for i Heap Memory
Syntax
#include <qp2user.h> int Qp2free(void *mem);
Service Program Name: QP2USER
Default Public Authority: *USE
Threadsafe: Yes
Qp2free() frees an IBM® i PASE heap memory allocation by calling the IBM PASE for i free() function.
Parameters
- mem
- (Input) A pointer to the start of the IBM PASE for i memory allocation to be freed.
Authorities
None.
Return Value
The function result is zero for normal completion, or -1 with an error indicated in ILE errno that is ususally one of the following:
EPERM | An error occurred attempting to call an IBM PASE for i
function. |
ETERM | IBM PASE for i is terminating. |
Related Information
- IBM PASE for i
free()--See AIX® documentation
- Qp2errnop()--Retrieve IBM PASE for i errno
Pointer
- Qp2RunPase()--Run an IBM PASE for i Program
API introduced: V5R2