update swig on windows
This commit is contained in:
23
winx64/bin/swigwin-4.0.0/Examples/php/simple/example.c
Normal file
23
winx64/bin/swigwin-4.0.0/Examples/php/simple/example.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/* File : example.c */
|
||||
#include <stdio.h>
|
||||
|
||||
/* A global variable */
|
||||
double Foo = 3.0;
|
||||
|
||||
void print_Foo() {
|
||||
printf("In C, Foo = %f\n",Foo);
|
||||
}
|
||||
|
||||
/* Compute the greatest common divisor of positive integers */
|
||||
int gcd(int x, int y) {
|
||||
int g;
|
||||
g = y;
|
||||
while (x > 0) {
|
||||
g = x;
|
||||
x = y % x;
|
||||
y = g;
|
||||
}
|
||||
return g;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user