]> wirehaze git hosting - ppos.git/commitdiff

wirehaze git hosting

add queue data structures
authorphfr24 <phfr24@inf.ufpr.br>
Sat, 28 Feb 2026 19:44:13 +0000 (16:44 -0300)
committerphfr24 <phfr24@inf.ufpr.br>
Sat, 28 Feb 2026 19:44:13 +0000 (16:44 -0300)
queue/queue.c

index 949e461138be84c972487adcd98addb9a8a9aa5b..4afa4a50164859b822cc86b060d4eada937977c0 100644 (file)
@@ -3,3 +3,19 @@
 // Versão 2.0 -- Junho de 2025
 
 // Implementação do TAD fila genérica
+
+#include "queue.h"
+
+struct node_t
+{
+  void *item;
+  struct node_t *next;
+};
+
+struct queue_t
+{
+  struct node_t *head;
+  struct node_t *tail;
+  struct node_t *iterator;
+  int size;
+};