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

 
Output of file : CSMEET.C contained in archive : CSRC2.ZIP
/*
* c s m e e t . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title csmeet Compute Meet (Intersection) of Two Csets
index Compute meet (intersection) of two csets

synopsis

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

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

description

The cset returned by csmeet() has as members all elements of both cs1
and cs2. Whenever possible, csmeet() 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.

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

bugs

author

Jerry Leichter

#endif

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

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

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


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : CSMEET.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/