gants has asked for the wisdom of the Perl Monks concerning the following question:
then what's wrong here, in C it works well, module for perl#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; }
compiled well, but this use TST; TST::test(4444,"ss"); prints called c from perl len:'4444' str:'(null)'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: usage libc in perl, how using char's?
by Corion (Patriarch) on Apr 29, 2010 at 08:06 UTC | |
|
Re: usage libc in perl, how using char's?
by samarzone (Pilgrim) on Apr 29, 2010 at 08:34 UTC | |
by gants (Novice) on Apr 29, 2010 at 11:14 UTC |