in reply to usage libc in perl, how using char's?

I don't know much about linking Perl and C but there is one thing which got my attention.

Your function name is tst in C while it is test in perl. Is is the way it should be?

Replies are listed 'Best First'.
Re^2: usage libc in perl, how using char's?
by gants (Novice) on Apr 29, 2010 at 11:14 UTC

    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...