Buffer always is 0 when printing from consumer.c
This commit is contained in:
@@ -7,6 +7,7 @@ int StringToNumber(char* argv);
|
||||
typedef struct SharedStruct
|
||||
{
|
||||
int buffer[10];
|
||||
int count[10];
|
||||
sem_t semConsumer;
|
||||
sem_t semProducer;
|
||||
} SharedStruct;
|
||||
|
||||
Reference in New Issue
Block a user