Qp2free()--Free i5/OS PASE Heap Memory


  Syntax
 #include <qp2user.h>

 int Qp2free(void *mem);

  Service Program Name: QP2USER

  Default Public Authority: *USE

  Threadsafe: Yes

Qp2free() frees an i5/OS PASE heap memory allocation by calling the i5/OS PASE free() function.


Parameters

mem
(Input) A pointer to the start of the i5/OS PASE 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 i5/OS PASE function.

ETERM i5/OS PASE is terminating.


Related Information



API introduced: V5R2
Top | i5/OS PASE APIs | APIs by category