This commit is contained in:
Kreyren 2020-02-07 12:37:25 +00:00
parent 230b90cecf
commit 7425043f68
5 changed files with 14 additions and 47 deletions

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

Binary file not shown.

@ -1,22 +0,0 @@
#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;
}

Binary file not shown.

@ -1,22 +1,19 @@
#include <stdio.h>
// FIXME: Does not build on clang
// FIXME-QA: Outputs warnings
int main(int argc, char ** argv[]) {
if(argc < 2)
{
printf("\nArgument(s) required, use -h for display help\n");
if(argc < 2) {
// FIXME: Add better help message
// FIXME: Source from po depending on language used
printf("%s\n", "Argument(s) required, use -h for display help");
return 2;
} else if(strcmp(argv[1], "-h") == 0) {
printf("FIXME: %s\n", "Add optionsi");
return 1;
} else {
printf("FATAL: %s\n", "Unexpected happend while processing arguments");
return 256;
}
else if(strcmp(argv[1], "-h") == 0)
{
printf("\n Fixme: Add optionsi\n");
}
else
{
printf("\nuwu");
}
return 0;
}