nSnake
A ncurses implementation of the classic Snake game
Functions
src/arguments.h File Reference

Defines the procedures related to handling the command-line arguments. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void args_handle (int argc, char *argv[])
 Handles all the commandline arguments.
void print_help ()
 Prints Help instructions on standard output.
void print_license ()
 Prints the preamble of the GNU GPL license v3 on standard output.
void print_usage ()
 Prints the program usage on standard output.
void print_version ()
 Prints the program version on standard output.

Detailed Description

Defines the procedures related to handling the command-line arguments.


Function Documentation

void args_handle ( int  argc,
char *  argv[] 
)

Handles all the commandline arguments.

This is the main function of this module. It processes an argv[] array of argc elements based on the options specified at the struct option.

If you want to add another argument, follow these steps: # Add an option on the struct option. # Add the short equivalent (if it exists) on the getopt_long() call. # Add a case on the switch specifying the action of that option.

 All Data Structures Files Functions Variables Enumerations Defines