diff --git a/.gitignore b/.gitignore index 2edd3e1442e9c6f026fbfbfb24df2219ba760968..c1e6774da61df9c961930adbe1d5fe03bafb15fc 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,8 @@ Python/venv/ # Do not track local environment logs. *.log *.log.* + + +# Do not track compiled C files. +*.o +C/main diff --git a/C/main.c b/C/main.c new file mode 100644 index 0000000000000000000000000000000000000000..f080abc4cec350017eeb7c166d00cffab9a60868 --- /dev/null +++ b/C/main.c @@ -0,0 +1,30 @@ +/** + * Date: 11-12-19 + * Class: CS5310 + * Assignment: Peterson's Algorithm + * Author: Brandon Rodriguez + * + * + * <File Description Here> +*/ + + +// Import headers. +#include <ctype.h> +#include <pthread.h> +#include <stdlib.h> +#include <stdio.h> +#include <string.h> + + +/** + * Program's main. Initialized and runs program. + */ +int main(int argc, char* argv[]) { + printf("Initializing program.\n"); + + // Program logic here. + + printf("Terminating program.\n"); + return 0; +} diff --git a/C/makefile b/C/makefile new file mode 100644 index 0000000000000000000000000000000000000000..565b48e2475d8798d812c2df280a73be7420fb85 --- /dev/null +++ b/C/makefile @@ -0,0 +1,3 @@ + +all: + gcc -Wall -Wpedantic -std=c99 main.c -g -o main -pthread