in reply to Arrays and Inline C

Have a look at the Cookbook

Basically you pass and return the variable much like you would call any other function

use Inline C; $var = "something"; somefunc($var); __END__ __C__ somefunc(char* str){ . . return something; }