02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IF (p.EQ.0) THEN<br />

PRINT *, 'MALLOC failed.'<br />

ELSE<br />

DO i = 1,nelem<br />

iarr(i) = i<br />

END DO<br />

PRINT *, (iarr(i),i=1,nelem)<br />

CALL FREE( p )<br />

ENDIF<br />

RETURN<br />

END SUBROUTINE print_iarr<br />

Related statements<br />

POINTER (standard <strong>Fortran</strong> 90)<br />

Related concepts<br />

For related information, see the following:<br />

“Pointers” on page 49<br />

The description of the LOC routine in Table 12-3<br />

<strong>HP</strong> <strong>Fortran</strong> statements<br />

POINTER (Cray-style extension)<br />

The descriptions of the MALLOC and FREE intrinsics in Chapter 11, “Intrinsic procedures,”<br />

on page 467<br />

Chapter 10 393

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!