Adapted code

This commit is contained in:
Klairm 2020-02-06 14:30:49 +01:00
parent d31f2dfcb1
commit 230b90cecf
3 changed files with 30 additions and 0 deletions

8
src/bin/Makefile Normal file

@ -0,0 +1,8 @@
OBJS = main.c
CC = gcc
C_FLAGS = -w -pedantic
OBJ_NAME = main
all: $(OBJS)
$(CC) $(OBJS) $(C_FLAGS) -o $(OBJ_NAME)

BIN
src/bin/main Executable file

Binary file not shown.

22
src/bin/main.c Normal file

@ -0,0 +1,22 @@
#include <stdio.h>
int main(int argc, char ** argv[]) {
if(argc < 2)
{
printf("\nArgument(s) required, use -h for display help\n");
}
else if(strcmp(argv[1], "-h") == 0)
{
printf("\n Fixme: Add optionsi\n");
}
else
{
printf("\nuwu");
}
return 0;
}