Server Wait On Clients System - API Documentation  v1.7.4
Server Wait On Clients System.
cmdlineargs.h
Go to the documentation of this file.
1 
14 #ifndef CMDLINEARGS_H
15 #define CMDLINEARGS_H
16 
17 #include <limits.h>
18 
19 #include <libmgec/mge-portability.h>
20 
21 BEGIN_C_DECLS
22 
28 #define ARG_BUF PATH_MAX
29 
31 struct cla {
32  int is_set;
33  char argument[ARG_BUF];
34 };
35 
36 int process_cla(int argc, char **argv, ...);
37 
38 int cpyarg(char *flagarg, char *srcarg);
39 
40 END_C_DECLS
41 
42 #endif /* ndef CMDLINEARGS_H */
char argument[ARG_BUF]
A possible argument to the flag.
Definition: cmdlineargs.h:33
int cpyarg(char *flagarg, char *srcarg)
Definition: cmdlineargs.c:202
int is_set
Flag is set, 1 is true, 0 is false.
Definition: cmdlineargs.h:32
Command line argument.
Definition: cmdlineargs.h:31
int process_cla(int argc, char **argv,...)
Process command line arguments using getopt_long.
Definition: cmdlineargs.c:35
#define ARG_BUF
Argument buffer size.
Definition: cmdlineargs.h:28