summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-07-04 12:50:19 -0600
committermo khan <mo.khan@gmail.com>2020-07-04 12:50:19 -0600
commit93acf977c7abd462899c68a7967378fc127e3b50 (patch)
treefeef1c9cd7ad8c00f4449763deee73b6d56ce492 /src
parent3f214c38eb10e35f6540c1d88a9fda8700804e90 (diff)
Add code comments for structs
Diffstat (limited to 'src')
-rw-r--r--src/01/01a/priority_queue.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/01/01a/priority_queue.h b/src/01/01a/priority_queue.h
index 95cc242..e5390f7 100644
--- a/src/01/01a/priority_queue.h
+++ b/src/01/01a/priority_queue.h
@@ -1,3 +1,6 @@
+/**
+ * A struct that represents a single node in a linked list
+ */
struct node {
int priority;
int data;
@@ -6,6 +9,9 @@ struct node {
typedef struct node Node;
+/**
+ * A struct that represents a Queue implemented using a Singly Linked List.
+ */
typedef struct {
Node *head;
int size;