mirror of
https://github.com/FizzyApple12/Waccon.git
synced 2026-09-22 23:08:05 +03:00
18 lines
248 B
C
18 lines
248 B
C
#ifndef _QUEUE_
|
|
#define _QUEUE_
|
|
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct node {
|
|
int val;
|
|
struct node *next;
|
|
} node_t;
|
|
|
|
void enqueue(node_t **head, int val);
|
|
|
|
int dequeue(node_t **head);
|
|
|
|
bool isEmpty(node_t **head);
|
|
|
|
#endif |