From 93acf977c7abd462899c68a7967378fc127e3b50 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 4 Jul 2020 12:50:19 -0600 Subject: Add code comments for structs --- src/01/01a/priority_queue.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3