aboutsummaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-07-13 12:22:26 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-07-13 12:25:30 -0400
commit341263ccecb5b112703633dedcd61970c43f72ae (patch)
tree2bdcb90836d780c28273633dc71983b5c7d22c53 /node.h
parent94894e7294320eb724141242c33a264e93386360 (diff)
Add node from old code v1@9f14600
Diffstat (limited to 'node.h')
-rw-r--r--node.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/node.h b/node.h
new file mode 100644
index 0000000..97dc29e
--- /dev/null
+++ b/node.h
@@ -0,0 +1,18 @@
+#ifndef NODE_H
+#define NODE_H
+
+/* Linked list */
+
+typedef struct node_s {
+ char *name;
+ struct node_s *next;
+} node_t;
+
+/*constructor*/
+node_t* mknode(char *);
+
+/* helpers */
+node_t* search(node_t*, char *);
+node_t* insert(node_t*, char*);
+
+#endif