next up previous contents
Next: External Subroutine Example Up: Program Units Previous: External Procedures

 

Subroutine Syntax

Syntax of a (non-recursive) subroutine declaration:

tex2html_wrap27671

 
 SUBROUTINE < procname >[ (< dummy args >) ]

< declaration of dummy args >

< declaration of local objects >

...

< executable stmts >

[ CONTAINS

< internal procedure definitions > ]

END [ SUBROUTINE [< procname > ] ]

For more information, click here gif


next up previous contents
Next: External Subroutine Example Up: Program Units Previous: External Procedures

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.