in reply to Re: Re: Re: Re: Problems Passing String Argument With Nulls From C To Perl
in thread Problems Passing String Argument With Nulls From C To Perl

Consider Inline::C as a light alternative to XS. You can probably write your own C code rather easily with that, and the rest of the glue just magically comes together.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: Re: Re: Re: Problems Passing String Argument With Nulls From C To Perl

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Problems Passing String Argument With Nulls From C To Perl
by bean (Monk) on Feb 04, 2004 at 17:11 UTC
    I'd recommend SWIG - it's magically easy to use, and has the added benefit of allowing you to use your C functions in (in addition to Perl) Tcl, Python, Guile, Java, Ruby, and Mzscheme with minimal additional effort.

    Update

    More languages: Objective Caml, C#, and the Chicken scheme compiler.