in reply to Re: Re: Perlxs help please
in thread Perlxs help please
void
QAErrorMessage(err_code, ret_error, bufflen)
int err_code
SV* ret_error
int bufflen
OUTPUT:
ret_error
void and OUTPUT do not mix (void means no output).
You should try something like
void QAErrorMessage(error_code) CASE: int err_code PREINIT: int bufflen = 256; char ret_error[bufflen]; PPCODE: { QAErrorMessage(err_code, ret_error, bufflen); XPUSHs(sv_2mortal( newSVpvn(ret_error,bufflen) )); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Perlxs help please
by tachyon (Chancellor) on Oct 01, 2003 at 06:59 UTC |