Buffer always is 0 when printing from consumer.c

This commit is contained in:
2022-10-14 00:06:24 -05:00
parent 688411c38b
commit 26011d7d74
3 changed files with 44 additions and 21 deletions
+1
View File
@@ -7,6 +7,7 @@ int StringToNumber(char* argv);
typedef struct SharedStruct
{
int buffer[10];
int count[10];
sem_t semConsumer;
sem_t semProducer;
} SharedStruct;