----- Original Message -----
From: "Peter Sinnott" <[EMAIL PROTECTED]>

For example Inline
> only likes void as a return value so if I had declared my function
> int cdbt_prices_init(void) then Inline wouldn't have bound it.
>

Not so - I've had no trouble returning an int, and I think that's generally
the case. There's probably some examples in 'perldoc C-Cookbook' that show
how to return other than 'void'.

eg the following runs fine for me:

use warnings;
use Inline C => <<'END';

int dumb() {
    int i = -13;
    return i;
    }

END

print dumb();

Cheers,
Rob

Reply via email to