YAAP - Yet Another Argument Parser
A simple commandline argument parser for C
Data Fields
arg_parse_cmd Struct Reference

structure representing a command More...

#include <argparse.h>

Collaboration diagram for arg_parse_cmd:
Collaboration graph
[legend]

Data Fields

struct arg_base base
 base of the command line argument
 
int no_command
 if this is 1, the callback will be called if no command is given
 
const char * command
 the name of the command on the commandline, no spaces or special chars allowed, only ascii
 
const char * description
 short description of the command
 
int(* cb )(int argc, char **argv)
 function to call if the command is found on commandline
 

Detailed Description

structure representing a command

Examples:
example1.c.

The documentation for this struct was generated from the following file: