ginttu has asked for the wisdom of the Perl Monks concerning the following question:
foo() would be the C code I am trying to call in, foo.c. It's too long and always updated to add to the end of my module. Does anyone have any examples of calling in a C program from a module? foo.c also using a library which I know I will have to include as a configuration option at the beginning.package First; use Inline C => 'DATA' foo_wrapper(); _DATA_ _C_ void foo_wrapper { foo(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inline::C better than XS?
by Zaxo (Archbishop) on Nov 20, 2002 at 01:00 UTC | |
|
Re: Inline::C better than XS?
by derby (Abbot) on Nov 20, 2002 at 13:36 UTC | |
by ginttu (Sexton) on Nov 20, 2002 at 14:28 UTC | |
by jsegal (Friar) on Nov 20, 2002 at 16:47 UTC |