3.4.8. Function prototypes

The compiler recognizes function prototypes that override old-style non prototype definitions that appear at a later position in your code, for example:

Errors

The compiler generates a warning message if you use old-style function prototypes.

Example

int function_prototypes(char);

// Old-style function definition.
int function_prototypes(x)
    char x;
{
    return x == 0;
}
Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential