Skip to content

Commit

Permalink
Initial commit, created struct for input parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Booooozer committed Apr 24, 2021
0 parents commit 523c960
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CMakeLists.txt
cmake-build-debug
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CC=gcc
CFLAGS=-std=gnu99 -Wall -Wextra -Werror -pedantic

all:
20 changes: 20 additions & 0 deletions proj2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <stdio.h>

typedef struct {
int numElves;
int numRaind;
int timeElf;
int timeRaind;
}params;

int main(int argc, char *argv[]) {
if (argc != 5) {
fprintf(stderr, "Invalid input parameters\n");
return 1;
}




return 0;
}

0 comments on commit 523c960

Please sign in to comment.