home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
c
/
cnews016.arc
/
SETS.ARC
/
SETSOURC.ARC
/
SETASSGN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-03-09
|
757b
|
28 lines
#include <stdio.h>
#include <stdarg.h>
#include "sets.h"
/***************************************************************************/
int set_assign(set *destination, set *source)
/***************************************************************************/
/* This function assigns a set value to a set variable or the value of
one set variable to another.
*/
{
int i;
/* check types */
if(check_set_types(destination,source) == SUCCESS)
{
for(i=0;i<destination->member_recs;i++)
destination->word[i] = source->word[i];
/* correct the member count in the destination set record */
destination->nmembers = source->nmembers;
return SUCCESS;
}
else
return FAILURE;
} /* end set_assign */