Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29245 Discussions

Converting/casting C_FUNPTR pointer into a C_INTPTR_T pointer?

Syed_R_
Beginner
755 Views

How to I convert/cast a C_FUNPTR pointer into a C_INTPTR_T pointer? Please help!

0 Kudos
3 Replies
IanH
Honored Contributor III
755 Views

You could use the TRANSFER intrinsic.

0 Kudos
Syed_R_
Beginner
755 Views

Thanks that TRANSFER intrinsic function works.

How do I convert/cast a C_PRT pointer into a HANDLE? The TRANSFER instrinsic function does not work here. Please help!

0 Kudos
Steven_L_Intel1
Employee
755 Views

See your other thread.  TRANSFER works just like it does for C_FUNPTR.

0 Kudos
Reply