in reply to Why can't I call a C subroutine using Inline-C module?
And so does:use Inline 'C'; main(123); __END__ __C__ int main(int argc) { return 0; }
Note that I'm providing arguments when I call main() as per the definition of main() - otherwise an (expected) error occurs complaining about my usage.use Inline 'C'; main(123, 'string'); __END__ __C__ int main(int argc, char *argv) { return 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why can't I call a C subroutine using Inline-C module?
by almut (Canon) on Mar 05, 2010 at 08:17 UTC | |
by syphilis (Archbishop) on Mar 05, 2010 at 08:51 UTC | |
by BrowserUk (Patriarch) on Mar 05, 2010 at 09:19 UTC |