Re: varargs calling C from 4gl
Posted in 1993
In article <1ttklqINNmmv@emory.mathcs.emory.edu> roderick@ibcinc.com (Roderick Schertler) writes: >Is there a way to defeat 4gl's `Function has been called with a >different number of arguments' checking? I'd really like to write a C >function callable from 4gl which takes a variable number of arguments >but 4gl won't allow it, as far as I can tell. (Save the hack of calling >it with different numbers of args from different source files...) The >really annoying bit is that from the C side it's so trivial. >-- >Roderick Schertler >International Bonded Couriers/Miami >roderick@ibcinc.com > Why not put all of your argments in one quoted string. Pass them all as one "argument" to the 4gl/C interface routine. The interface routine can then do the intelligent thing with the variable number of arguments. ---------------------------------------------------------------------------- Jeff Cauhape cauhape@TWG.COM 415/962-7147 Room 226 (SneakerNet) "Ask me about my Vow of Silence." ----------------------------------------------------------------------------