blob: bc3fb6f66240ace761eddd5962f9dc1ff5b26d11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <getopt.h>
#include "header.h"
int main(int argc, char **argv)
{
int opt;
while ((opt = getopt(argc, argv, "c")) != -1)
{
switch (opt)
{
case 'c':
mandelbrot_print();
exit(EXIT_SUCCESS);
break;
default:
fprintf(stderr, "Usage %s ...", argv[0]);
}
}
GState *gstate = graphics_init();
graphics_run(gstate);
graphics_quit(gstate);
return EXIT_SUCCESS;
}
|