cctools
jx_getopt.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2022 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
jx.h
jx_getopt_push
void jx_getopt_push(struct jx *j)
Process command lines from a JX document.
jx_getopt
int jx_getopt(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)
Parse the next argument.
option
Definition:
getopt.h:120
jx
JX value representing any expression type.
Definition:
jx.h:117
dttools
src
jx_getopt.h
Generated by
1.8.17