Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 58f5a40828161dc688bc640be9c7bd55 > files > 325

swig-1.3.11-4mdk.ppc.rpm

/* File : example.c */

/* A global variable */
double Foo = 3.0;

/* 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;
}