Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Host Language Call Interface : Writing C functions : Top-level C function declaration
 
Top-level C function declaration
If you use the FUNCTEST macro provided in the prototype hlprodsp.c file, your top-level function must use the following syntax:

Syntax

long function-name ( arcg, argv )
int argc;
char *argv[];
The length and content of the function name must follow the conventions that your C compiler and linker require. The argc and argv parameters follow the rules defined for argc and argv passed by the standard main() C function. If your top-level function must use a different interface, either write alternative dispatch code for it or rewrite FUNCTEST to meet your particular needs.
For more information on the FUNCTEST macro, see Mapping routine identifiers using PRODSP() .