summaryrefslogtreecommitdiff
path: root/main.c
blob: dab44b7a59cb7848c70d8a93f77908e856dcf77e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# include <luma/main.h>
# include <stdio.h>
# include <stdlib.h>
# include <unistd.h>
int main(int argc, char * * argv) {
	if(argc < 0x2) {
		printf("Missing argument \"file\".\n");
		exit(EXIT_FAILURE);
	}
	if((access(argv[0x1], F_OK) == 0)) {
		printf("The file exists.\n");
		luma__stdlibsock__gfx__crtwin("luma test",0x0,0x0,0x400,0x300,false);
	}
	else {
		printf("The file doesn't exist.\n");
		exit(EXIT_FAILURE);
	}
	exit(EXIT_SUCCESS);
}