Help for this page

Select Code to Download


  1. or download this
    #include "EXTERN.h"
    #include "perl.h"
    #include "XSUB.h"
    ...
            int           iReturn
        OUTPUT:
            iReturn
    
  2. or download this
    #include "TestInclude.h"
    
    void C_function(int    iReturn)
    {
        iReturn = 5;
    }
    
  3. or download this
    package TEST;
    
    require Exporter;
    ...
    
    bootstrap TEST;
    1;
    
  4. or download this
    use TEST;
    
    $Code = 25;
    C_function($Code);
    printf("Return Code:  %d\n", $Code);