Help for this page

Select Code to Download


  1. or download this
    sub MyFunc {
        my $arrRef= shift(@_);
        my $packedArr= pack("f*",@$arrRef);
        return MyFuncC( 0+@$arrRef, $packedArr );
    }
    
  2. or download this
    int MyFuncC( count, packedArray )
            int    count;
            char * packedArray;
        CODE:
            RETVAL= CFunc( count, (float *)packedArray );