fixes
This commit is contained in:
parent
230b90cecf
commit
7425043f68
@ -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)
|
||||
|
BIN
src/bin/C/main
BIN
src/bin/C/main
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;
|
||||
}
|
BIN
src/bin/main
BIN
src/bin/main
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user