Segmentation fault with queue in C
- by Trevor
I am getting a segmentation fault with the following code after adding structs to my queue.
The segmentation fault occurs when the MAX_QUEUE is set high but when I set it low (100 or 200), the error doesn't occur. It has been a while since I last programmed in C, so any help is appreciated.
#include <stdio.h>
#include <stdlib.h>…