-
Notifications
You must be signed in to change notification settings - Fork 2
/
setoper.h
37 lines (30 loc) · 1.08 KB
/
setoper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Header file for setoper.c */
/* setoper.c:
* A set operation library
* created by Komei Fukuda, Nov.14, 1993
* last modified on August 18, 1996
*/
#include <stdio.h>
#include <stdlib.h>
typedef unsigned long *set_type; /* set type definition */
typedef unsigned char set_card_lut_t;
unsigned long set_blocks(long len);
void set_initialize(set_type *setp,long len);
void set_free(set_type set);
void set_emptyset(set_type set);
void set_copy(set_type setcopy,set_type set);
void set_addelem(set_type set, long elem);
void set_delelem(set_type set, long elem);
void set_int(set_type set,set_type set1,set_type set2);
void set_uni(set_type set,set_type set1,set_type set2);
void set_diff(set_type set,set_type set1,set_type set2);
void set_compl(set_type set,set_type set1);
int set_subset(set_type set1,set_type set2);
int set_member(long elem, set_type set);
long set_card(set_type set);
void set_write(set_type set);
void set_fwrite(FILE *f,set_type set);
void set_binwrite(set_type set);
void set_fbinwrite(FILE *f,set_type set);
/* End of File: setoper.h */
/* End of File: setoper.h */