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