Re: Number of Arguments to a C function in Custom RDS Runner
Posted in 1994
> I may have skipped over something, but is there a way to pass to a C function > an unknown count of arguments? The C function is within the RDS custom > runner. I have the C function accepting it fine and works great in i4GL > ( compiled format ). There can't be such a limitation, can there? Yes. There is an example given in Informix manual, but I dont remember which volume. I'm at home, 30+ miles away from my manual set, but it's there. Look up fgiusr in the index. The specific thing you need to do, for a function foo that accepts up to 5 arguments: extern int foo(); struct fgiusr[] = { "foo", foo, -5, NULL, NULL, 0 }; Notice the use of -5 to imply that function may accept up to 5 arguments. > Robert Minter |Data Systems Support| \\\\\\_/// > Programmer, Software Development | Orange, CA | ( _ _ ) > internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) > bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ > #include <disclaimer.h> SURF'S UP \\_/ -- ------------------------------------------------------- | Paul T. Pryor | Computer Data Systems, Inc | | (703) 756-8350 Voice/TDD | Falls Church, VA USA | |-------------------------------------------------------| | ptp@fallschurch-acirs2.army.mil [192.86.95.3] | -------------------------------------------------------