exp 7: remove the peek fn

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-12-27 19:44:11 +05:30
parent c460e95304
commit 6cbd12b772

2
7.c
View File

@@ -13,8 +13,6 @@ struct Queue {
node *tail;
};
int peek(queue *q) { return q->head->id; }
void insert(queue *q, int id) {
node *new = malloc(sizeof(node));
new->id = id;