24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Functions and Subroutines<br />

12.8.3.5 Asterisks as Dummy Arguments<br />

A dummy argument that is an asterisk may only appear in the dummy argument list of a SUBROUTINE<br />

statement or an ENTRY statement in a subroutine subprogram and may be associated only with an actual<br />

argument that is an alternate return specifier in a CALL statement which references the subroutine.<br />

Example:<br />

CHARACTER*10 RECORD(5)<br />

I = 2<br />

CALL SAM( I, *999, 3HSAM )<br />

PRINT *, ’I should be skipped’<br />

999 PRINT *, ’I should be printed’<br />

END<br />

SUBROUTINE SAM( I, *, K)<br />

CHARACTER*3 K<br />

PRINT *, K<br />

RETURN 1<br />

END<br />

Subprogram Arguments 281

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

Saved successfully!

Ooh no, something went wrong!