char *foo = SvPV( RETVAL, 0 ); fcn( foo ); printf( "string: %s length: %d", foo, strlen(foo) );