cctools
jx_getopt.h
Go to the documentation of this file.
1/*
2Copyright (C) 2022 The University of Notre Dame
3This software is distributed under the GNU General Public License.
4See 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
28extern struct jx *jx_optarg;
29
35void jx_getopt_push(struct jx *j);
36
42int jx_getopt(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex);
43
44#endif
JSON Expressions (JX) library.
void jx_getopt_push(struct jx *j)
Process command lines from a JX document.
int jx_getopt(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)
Parse the next argument.
JX value representing any expression type.
Definition jx.h:117
Definition getopt.h:121