cctools
jx_getopt.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2018- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
20 #ifndef JX_GETOPT_H
21 #define JX_GETOPT_H
22 
23 #include <unistd.h>
24 #include <getopt.h>
25 
26 #include "jx.h"
27 
28 extern struct jx *jx_optarg;
29 
35 void jx_getopt_push(struct jx *j);
36 
42 int jx_getopt(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex);
43 
44 #endif
int jx_getopt(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)
Parse the next argument.
Definition: getopt.h:120
JSON Expressions (JX) library.
JX value representing any expression type.
Definition: jx.h:117
void jx_getopt_push(struct jx *j)
Process command lines from a JX document.