IN101 project on Conway's Game of Life
list_optionsparser.h
Go to the documentation of this file.
1 
8 #include <stdbool.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 
12 typedef struct list_options list_options;
13 
17 struct list_options {
18  bool print_formatting_help;
19  bool print_to_console;
20  bool generate_images;
21  bool consider_torus;
22  bool expandable;
23  char *filename;
24 };
25 
26 list_options list_default_options();
27 
33 void print_usage(char *exec_name);
34 
39 
45 list_options parse_options(int argc, char **argv);
void print_usage(char *exec_name)
Print usage help message and crash program.
Definition: list_optionsparser.c:23
void do_print_formatting_help()
Print source textfile formatting help and crash program.
Definition: list_optionsparser.c:29
list_options parse_options(int argc, char **argv)
Parse options from command line arguments.
Definition: list_optionsparser.c:35
Structure used to store the command-line options entered by the user.
Definition: list_optionsparser.h:17