]> wirehaze git hosting - ppos.git/blobdiff - queue/queue.c

wirehaze git hosting

add .clang-format
[ppos.git] / 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
 // 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;
+};