I had worked up something for HPUX and SunOS some years back. I will post if folks are interested. Thought this might be a standard in the XS arena by now.
-----Original Message----- From: Dirk Koopman [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 8:37 AM To: Perl XS Mailing List Subject: interfacing to (v)sprintf type things that expect varargs Subject says it all really. I have a number of vararg based routines that accept a number of optional arguments. Given that I know how to get these values from the stack (fortunately [most of the time] I know what they are), do you have any suggestions as to how I can reassemble the actual program stack from the perl stack so that I can call these routines in C. For example the perl XS prototype:- int ffedit(fmt,...) char *fmt; That needs to translate to the C function: int ffedit(char *fmt, ...) in real life. Dirk *********************************************************************** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. ***********************************************************************
