Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

RE: (jcwren) RE: Adding 2 + 2

by merlyn (Sage)
on Sep 11, 2000 at 07:44 UTC ( #31837=note: print w/ replies, xml ) Need Help??

in reply to (jcwren) RE: Adding 2 + 2
in thread Adding 2 + 2

OK, there's the challenge:

use Inline C => 'int add(int a, int b) { return a + b; }'; print add(2,2), "\n";
Hmm. Maybe I should hoist this up as a real snippet. {grin}

-- Randal L. Schwartz, Perl hacker

Comment on RE: (jcwren) RE: Adding 2 + 2
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://31837]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-07-02 22:20 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (46 votes), past polls