aisd_lab/lab01/zad1/include/queue.h
jacekpoz dc368f088a
fix writing to the queue using the same value
the fix was to memcpy the passed pointer to a local one and it works :-)
2024-03-10 01:16:13 +01:00

15 lines
284 B
C

#ifndef _KIK_ZAD1_QUEUE_H
#define _KIK_ZAD1_QUEUE_H
#include <stdbool.h>
#include <stddef.h>
typedef struct Queue Queue;
Queue *queue_new(size_t size, size_t element_size);
void *queue_read(Queue *queue);
bool queue_write(Queue *queue, void *value);
#endif // _KIK_ZAD1_QUEUE_H