home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 215.lha / AmyLoad / findmxdatapoint.c < prev    next >
C/C++ Source or Header  |  1996-02-14  |  448b  |  19 lines

  1. #include    <exec/types.h>
  2. #include    <exec/nodes.h>
  3. #include    "execdef.h"
  4. #include    "loadrecord.h"
  5.  
  6. #include    "FindMaxDataPoint.proto"
  7.  
  8. void
  9. FindMaxDataPoint(record)
  10.     register LoadRecord *record;
  11. {
  12.     register LoadDataValue *cur_data;
  13.  
  14.     record->max_data = record->start_data;
  15.     for (cur_data = record->start_data; cur_data < record->next_data; cur_data++)
  16.      if (*cur_data > *(record->max_data))
  17.         record->max_data = cur_data;
  18. }
  19.