IN101 project on Conway's Game of Life
naive_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 naive_options naive_options;
13 
17 struct naive_options {
18  bool print_formatting_help;
19  bool print_to_console;
20  bool generate_images;
21  bool consider_torus;
22  char *filename;
23 };
24 
25 naive_options naive_default_options();
26 
32 void print_usage(char *exec_name);
33 
38 
44 naive_options parse_options(int argc, char **argv);
Structure used to store the command-line options entered by the user.
Definition: naive_optionsparser.h:17
void do_print_formatting_help()
Print source textfile formatting help and crash program.
Definition: list_optionsparser.c:29
naive_options parse_options(int argc, char **argv)
Parse options from command line arguments.
Definition: list_optionsparser.c:35
void print_usage(char *exec_name)
Print usage help message and crash program.
Definition: list_optionsparser.c:23