diff --git a/src/bin/C/Makefile b/src/bin/C/Makefile new file mode 100644 index 0000000..56d2e68 --- /dev/null +++ b/src/bin/C/Makefile @@ -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) + diff --git a/src/bin/C/main b/src/bin/C/main new file mode 100755 index 0000000..e6da701 Binary files /dev/null and b/src/bin/C/main differ diff --git a/src/bin/C/main.c b/src/bin/C/main.c new file mode 100644 index 0000000..de8da2b --- /dev/null +++ b/src/bin/C/main.c @@ -0,0 +1,22 @@ +#include + +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; +} diff --git a/src/bin/main.c b/src/bin/main.c deleted file mode 100644 index 6f940c8..0000000 --- a/src/bin/main.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int main() { - // Refer to the documentation - printf("FIXME: %s\n", "Translate zernit into C lang"); - return 1; -} \ No newline at end of file