Help for this page

Select Code to Download


  1. or download this
    return para[1]
    
  2. or download this
    $str = pack('ddd', 1.0, 1.1, 1.3);
    
  3. or download this
    void
    func(doublearrsv)
    ...
        doublearr = SvPV(doublearrsv, len);//cast warning here
        if(len != sizeof(*doublearr)) croak("bad len");
        do_nothing(&doublearr[2]); //THIS WILL UPDATE IN PERL LAND
    
  4. or download this
    @array = unpack('ddd', $str);
    
  5. or download this
    @arr = ([11,12,13], [21,22,23], [31,32,33]);
    myxsub(@arr);
    
  6. or download this
    void
    myxsub(...)
    ...
             SV * sv =  ST(i);
             //do something
        }