home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
comm
/
yaccunx
/
ystuni.1c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1983-12-23
|
317 b
|
18 lines
#include "y1.h"
setunion( a, b ) register *a, *b;
{
/* set a to the union of a and b */
/* return 1 if b is not a subset of a, 0 otherwise */
register i, x, sub;
sub = 0;
SETLOOP(i)
{
*a = (x = *a)|*b++;
if( *a++ != x ) sub = 1;
}
return( sub );
}