•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Function Prototyping ]

... enables the compiler to perform type checking and conversion for
function calls.  Also, without prototypes functions have to be defined
before they can be called, forcing a "bottom up" programming style.

Prototypes are generally stored in header files (see #include).
The storage class for prototypes is extern.

Prototypes will not interfere with a subsequent function definition
(so long as the types agree).

The syntax is essentially the same as the ANSI Definition, except
that the {<local block>} is replaced with a semicolon and the argument
names are optional.

  [<type>] [<parm>] <name> (
    <type> [<arg name>],
    <type> [<arg name>],
    ...) ;

Examples:

  float trace(int n, float a[N][N]);
  void signal_handler(int);