Adapted code
This commit is contained in:
parent
d31f2dfcb1
commit
230b90cecf
8
src/bin/Makefile
Normal file
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
BIN
src/bin/main
Executable file
Binary file not shown.
22
src/bin/main.c
Normal file
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user