On Fri, Jun 22, 2001 at 03:21:33PM -0400, Richard Chen wrote:
> I am just testing out Inline to see how it works
> for building unimplemented system calls.
>
> On many unix systems there is a clock system call
> which is not implemented in perl. Here is my test on
> Redhat linux 6.2 to implment it using Inline:
> #include <time.h>
> int my_clock(void) {
> return clock();
> }
Inline does not recognize your function's signature. All arguments must have a type
and a name. What you want here is:
int my_clock() {
To find out which signatures Inline recognizes, run your script like this:
perl -MInline=info script.pl
Cheers, Brian