in reply to Re^2: own perl module based on c library
in thread own perl module based on c library
then what's wrong here, in C it works well, module for perl compiled well, but this#include <stdio.h> int tst(int len,char str[1024]){ printf("called c from perl len:'%i' str:'%s' \n",len, str); return 1; } int main( ){ tst(54,"char"); return 1; }
prints called c from perl len:'4444' str:'(null)'use TST; TST::test(4444,"ss");
|
|---|