Google searches for Inline::C are also helpful. When I was learning how to use it, I found a bunch of examples on the web that looked like this...


#!/usr/bin/perl
use Inline C;
print "Calling C function greet()...\n";
greet();
$value = myadd( 5, 7);
print "using C function to add 5 + 7\n";
print "C function myadd returned $value\n";
__END__
__C__
void greet() { printf("Hello, world\n"); }
int myadd(int a, int b) { int ret; ret = a + b; return ret; }




At 10:19 AM 12/17/2002 +0530, Bikash Kumar Jindal wrote:

Hi all

Can I know how to call a C function from a Pelr Script ??
Any help or direction will be appreciated.

Regards



  • Perl Bikash Kumar Jindal
    • Re: Perl Sisyphus
    • Re: Perl Mark Morlino

Reply via email to