ILE C/C++ Programmer's Guide

Using Prototypes to Minimize Function Call Processing

A function prototype consists of the function return type, the name of the function, and the parameter list. An un-prototyped function has its signature inferred by the data model in effect at the time of its first reference.

Note:
C++ requires full prototype declarations. ISO C allows non-prototyped functions.

C++ language onlyWhen calling a program dynamically from a C++ program using extern OS linkage, prototype the program to return void rather than int. Extra processing is involved in accessing the return value of a program call. Passing the address of storage that can hold a return value in the call's argument list is better from a performance viewpoint.

For information about function prototypes, see WebSphere Development Studio: ILE C/C++ Language Reference.


[ Top of Page | Previous Page | Next Page | Table of Contents ]