Temeschwarrior has asked for the wisdom of the Perl Monks concerning the following question:
Hello com,
Im writing an interface for a shared library, but i have a
little problem to handle C functions with variable argument list,
becouse i dont know how to build an xsub with that.
For example i have an function FWriteF(file, fmt, ...) its
imposibel to call and if i have an function like
VAWriteF(file, fmt, va_list) i cant do it too because an xsub like this:
dont work
so how can i handle this?
regards Temesch
Im writing an interface for a shared library, but i have a
little problem to handle C functions with variable argument list,
becouse i dont know how to build an xsub with that.
For example i have an function FWriteF(file, fmt, ...) its
imposibel to call and if i have an function like
VAWriteF(file, fmt, va_list) i cant do it too because an xsub like this:
int FWriteF(file,fmt, ...) FILE* file const char * fmt CODE: I32 i; va_list args for(i = items, i < items; i++) args ?= ST(i); //how do i pass to args? RETVAL =VAWriteF(file,fmt,args); OUTPUT: RETVAL
dont work
so how can i handle this?
regards Temesch
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: C Functions with variable argument list in perlxs
by tachyon-II (Chaplain) on May 05, 2008 at 13:03 UTC | |
Re: C Functions with variable argument list in perlxs
by Thelonius (Priest) on May 05, 2008 at 13:11 UTC | |
Re: C Functions with variable argument list in perlxs
by syphilis (Archbishop) on May 05, 2008 at 13:40 UTC | |
Re: C Functions with variable argument list in perlxs
by derby (Abbot) on May 05, 2008 at 12:53 UTC | |
Re: C Functions with variable argument list in perlxs
by Temeschwarrior (Novice) on May 05, 2008 at 17:55 UTC | |
Re: C Functions with variable argument list in perlxs
by salva (Canon) on May 07, 2008 at 08:29 UTC |
Back to
Seekers of Perl Wisdom