aboutsummaryrefslogtreecommitdiff
path: root/src/set.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-29 13:18:45 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-29 13:18:45 +0300
commit87818848122ac94995e359a8db3a0ed9a9173d42 (patch)
treecc86f6b34f0d9a6f64b963c6ef8d1252f1e61db9 /src/set.h
implementedHEADmaster
Diffstat (limited to 'src/set.h')
-rw-r--r--src/set.h14
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