ITEM: H3676L
sx6/pmr 6x945/call customer/Item H3676/
Question:
The customer would like to know how the malloc function works in Fortran.
Response:
While porting code from other platforms (Fortran), calls to malloc(\#)
always return 0. This is a pass-by-value vs. pass-by-reference
problem.
The Fortran operatore %VAL() will cause an argument to be passed by
value (the default is by reference). Thus, the malloc() function will
receive a parameter that is valid, and return a valid block of memory.
Support Line: sx6/pmr 6x945/call customer/Item H3676/ ITEM: H3676L
Dated: March 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:47
Comments or suggestions?
Contact us