home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / dm14.lzh / multitag.c < prev    next >
Text File  |  1995-10-26  |  552b  |  31 lines

  1. /* multitag.c function for DISKMASTER.C       */
  2. /* copyright (c) 1995 by Bob Devries          */
  3. /* email: bdevries@gil.ipswichcity.qld.gov.au */
  4.  
  5. /* Tags all files in the current directory */
  6.  
  7. #include "diskmaster.h"
  8.  
  9. int
  10. multitag(numfiles,tagged)
  11. int numfiles;
  12. int *tagged;
  13. {
  14.     extern short *attrptr;
  15.     int count;
  16.  
  17.     if(*tagged) {
  18.         for(count = 1;count <=numfiles; count++) {
  19.             attrptr[count] &= 0xFF;
  20.             *tagged -= 1;
  21.         }
  22.     } else {
  23.         for(count = 1;count <=numfiles; count++) {
  24.             attrptr[count] += TAG;
  25.             *tagged +=1;
  26.         }
  27.     }
  28. }
  29.  
  30. /* EOF multitag.c */
  31.