in reply to Re: usage libc in perl, how using char's?
in thread usage libc in perl, how using char's?
char* strval = SvPV(str);
that's been wrong I did C-module to PERL, it's opposite using PERL in C-lang. that's my source which I'm using as C-module to PERL.int tst(int len,char **str) { printf("called c from perl len:'%i' str:'%s' \n", len, str); return 1; }
Your function name is tst in C while it is test in perl. Is is the way it should be?
no, of course not, because I've posted there different outputs from just c-programm and module compiled to perl and called from perl, above...
|
|---|