Category : C Source Code
Archive   : CSRC2.ZIP
Filename : CSDIFF.C

 
Output of file : CSDIFF.C contained in archive : CSRC2.ZIP
/*
* c s d i f f . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title csdiff Compute Difference of Two Csets
index Compute difference of two csets

synopsis

#ifdef vms
#include "c:cset.h"
#else
#include
#endif

CSET *
csdiff(cs1,cs2);
CSET *cs1;
CSET *cs2;

description

The cset returned by csdiff() has as members all elements of cs1 that
are not members of cs2. Whenever possible, csdiff() shares existing
data by returning a cset that shares the memory used by cs1 and cs2.

If csunique is true, a new cset is always formed.

csdiff() returns NULL if it couldn't allocate a cset to return.

bugs

author

Jerry Leichter

#endif

/*
)EDITLEVEL=02
* Edit history
* 0.0 16-Jul-82 JSL Invention
*/

#ifdef vms
#include "c:cset.h"
#else
#include
#endif

CSET *
csdiff(cs1,cs2)
CSET *cs1;
CSET *cs2;
{ return(cscomp(csjoin(cscomp(cs1),cs2))); }
/* Use DeMorgan's law... */


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : CSDIFF.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/