IN101 project on Conway's Game of Life
Functions
naive_optionsparser.c File Reference

Source file for an options parser for a naive implementation of Conway's game of life. More...

#include "naive_optionsparser.h"
Include dependency graph for naive_optionsparser.c:

Functions

naive_options naive_default_options ()
 
void print_usage (char *exec_name)
 Print usage help message and crash program. More...
 
void do_print_formatting_help ()
 Print source textfile formatting help and crash program.
 
naive_options parse_options (int argc, char **argv)
 Parse options from command line arguments. More...
 

Detailed Description

Source file for an options parser for a naive implementation of Conway's game of life.

Author
your name (you@d.nosp@m.omai.nosp@m.n.com)
Date
2021-03-02

Function Documentation

◆ parse_options()

naive_options parse_options ( int  argc,
char **  argv 
)

Parse options from command line arguments.

Function will modify print_formatting_help, print_to_console and generate_images booleans accordingly and return the first positional argument, which should be the filename.

◆ print_usage()

void print_usage ( char *  exec_name)

Print usage help message and crash program.

Parameters
exec_nameexecutable name (usually from argv[0])