in reply to Re^2: How to use Inline::C properly
in thread How to use Inline::C properly

src_add  = inet_addr(SvIVX(Inline_Stack_Item(1)));
should be
src_add  = inet_addr(SvPVX(Inline_Stack_Item(1)));

Same for dst_add.

Replies are listed 'Best First'.
Re^4: How to use Inline::C properly
by macli (Beadle) on Mar 07, 2007 at 18:46 UTC
    Hi ikegami, Thanks for replying again, I looked it up in the perlapi:

    SvPVX Returns a pointer to the physical string in the SV. The SV must contain a string.

    seems the right api, but it still failes with the same error

    As I am new to perl, and C, There is too much I need to know, I am going to step back and learn from the basics :) I will just leave this problem alone for a while.