Thanks Rob a lot for the great example! Wish it's included in the
cookbook.
On Sun, Apr 6, 2014 at 7:53 PM, sisyph...@optusnet.com.au wrote:
-Original Message- From: sisyph...@optusnet.com.au
I don't know (off the top of my head) how to concatenate binary strings
in C ...
https://metacpan.org/pod/Inline::C-Cookbook has lots of good examples. But
I can't find an example on implementing a C function which takes a perl
string (may contain binary characters such as \x00 in the string) and
return another perl string (with binary characters).
In another word, the C
From: Perf Tech
In another word, the C function should have the similar syntax as the
following perl function.
sub myRepeat {
my $str = shift;
return $str . $str;
}
I don't know (off the top of my head) how to concatenate binary strings in
C, but the following demonstrates one way of
-Original Message-
From: sisyph...@optusnet.com.au
I don't know (off the top of my head) how to concatenate binary strings in
C ...
Thankfully, perl's API provides a simple solution:
##
use warnings;
use strict;
use Devel::Peek;
use Inline C = Config