in reply to Re^2: Propagating errors in C code to Perl
in thread Propagating errors in C code to Perl

That looks correct, though you can probably just return 0 for false if your function has an int function_name(...) prototype.

Replies are listed 'Best First'.
Re^4: Propagating errors in C code to Perl
by missingthepoint (Friar) on Sep 08, 2008 at 00:26 UTC

    Thanks Joost. I'm happy - I have no further questions :)


    email: perl -e 'print reverse map { chr( ord($_)-1 ) } split //, "\x0bufo/hojsfufqAofc";'