diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-29 13:18:45 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-29 13:18:45 +0300 |
commit | 87818848122ac94995e359a8db3a0ed9a9173d42 (patch) | |
tree | cc86f6b34f0d9a6f64b963c6ef8d1252f1e61db9 /src/set.h |
Diffstat (limited to 'src/set.h')
-rw-r--r-- | src/set.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/set.h b/src/set.h new file mode 100644 index 0000000..b92d229 --- /dev/null +++ b/src/set.h @@ -0,0 +1,14 @@ +#ifndef SET_H +#define SET_H + +typedef struct set { + struct set *parent; + int rank; +} set; + +set *set_create(); +void set_free(set *s); + +set *set_find(set *s); +void set_union(set *x, set *y); +#endif |