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 >
Wrap
Text File
|
1995-10-26
|
552b
|
31 lines
/* multitag.c function for DISKMASTER.C */
/* copyright (c) 1995 by Bob Devries */
/* email: bdevries@gil.ipswichcity.qld.gov.au */
/* Tags all files in the current directory */
#include "diskmaster.h"
int
multitag(numfiles,tagged)
int numfiles;
int *tagged;
{
extern short *attrptr;
int count;
if(*tagged) {
for(count = 1;count <=numfiles; count++) {
attrptr[count] &= 0xFF;
*tagged -= 1;
}
} else {
for(count = 1;count <=numfiles; count++) {
attrptr[count] += TAG;
*tagged +=1;
}
}
}
/* EOF multitag.c */