in reply to Re^4: Calling c functions from perl...
in thread Calling c functions from perl...

Oh, I see, by default SWIG expects unsigned chars to be numbers, not strings...

Try using the typemaps for "signed char" instead:

%apply signed char *INPUT { unsigned char *string1 }; %apply signed char *OUTPUT { unsigned char *string2 };