Qp2ptrsize()--Retrieve IBM PASE for i Pointer Size


  Syntax
 #include <qp2user.h>

 size_t Qp2ptrsize(void);

  Service Program Name: QP2USER

  Default Public Authority: *USE

  Threadsafe: Yes

Qp2ptrsize() returns the pointer size, in bytes, for the IBM® i Portable Application Solutions Environment (IBM PASE for i) program currently running in the job.


Parameters

None.


Authorities

None.


Return Value

The function result is 4 for a 32-bit program, or 8 for a 64-bit program. The result is zero if IBM PASE for i pointer size is not available (such as when no IBM PASE for i program is running in the job).


Related Information




API introduced: V5R2

[ Back to top | IBM PASE for i APIs | APIs by category ]