home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d4xx / d430 / smartfields.lha / SmartFields / Functions / mask_entire.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-11  |  502 b   |  24 lines

  1. /***************************************
  2. *  MASK ENTIRE v1.11
  3. *  © Copyright 1988 Timm Martin
  4. *  All Rights Reserved
  5. ****************************************/
  6.  
  7. #include <exec/types.h>
  8. #include <console/fields.h>
  9. #include <console/functions.h>
  10.  
  11. void mask_entire( mask, set )
  12.   struct FieldMask *mask;
  13.   ULONG  set;
  14. {
  15.   int i;
  16.  
  17.   if (set)
  18.     for (i = 0; i < MASK_ELEMENTS; i++)
  19.       mask->Element[i] = 0xFFFFFFFFL;
  20.   else
  21.     for (i = 0; i < MASK_ELEMENTS; i++)
  22.       mask->Element[i] = 0x00000000L;
  23. }
  24.