Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: C  |  size: 0.28 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void pick_lowSum(datatype, x, y, num, info)
  2. int *datatype, *num, *info, *x, *y;
  3. {
  4.         if (*num!=3 || *datatype != PVM_INT) {
  5.                 *info = PvmBadParam;
  6.                 return;
  7.         }
  8.  
  9.         //Lower sum found.
  10.         if (x[2] > y[2]) {
  11.                 x[0] = y[0];
  12.                 x[1] = y[1];
  13.                 x[2] = y[2];
  14.         }
  15.         *info = PvmOk;
  16.         return;
  17. }