Initial commit

This commit is contained in:
Klairm 2020-02-05 19:58:05 +01:00
parent ebd676f82b
commit d31f2dfcb1
4 changed files with 30 additions and 7 deletions

8
src/bin/C/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/C/main Executable file

Binary file not shown.

22
src/bin/C/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;
}

@ -1,7 +0,0 @@
#include <stdio.h>
int main() {
// Refer to the documentation
printf("FIXME: %s\n", "Translate zernit into C lang");
return 1;
}