Progress
External Program
Interfaces


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 interface:

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 the "Mapping Routine Identifiers Using PRODSP()" section.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095