Final cleanup commit

This commit is contained in:
TriantaTV 2022-10-03 03:45:50 -05:00
parent c31b3b632c
commit 6c064e55e8
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@
#define EATING 2 /*philosopher is eating*/
typedef struct PhilosopherData {
typedef struct PhilosopherData
{
int eatingCount;
int position;
int state;

View File

@ -1,4 +1,4 @@
#!/bin/bash
rm DiningPhilosophers.out
gcc DiningPhilosophers.c -o DiningPhilosophers.out 2> crashCompile.log
gcc DiningPhilosophers.c -o DiningPhilosophers.out > /dev/null 2>&1
./DiningPhilosophers.out 5