Iros
 
Loading...
Searching...
No Matches
getopt.h
Go to the documentation of this file.
1#pragma once
2
3#include <ccpp/bits/config.h>
5
7
8#define no_argument 0
9#define required_argument 1
10#define optional_argument 2
11
12struct option {
13 char const* name;
15 int* flag;
16 int val;
17};
18
19int getopt_long(int __argc, char* const __argv[], char const* __optstring, struct option const* __longopts,
20 int* __longindex);
21int getopt_long_only(int __argc, char* const __argv[], char const* __optstring, struct option const* __longopts,
22 int* __longindex);
23
int getopt_long_only(int __argc, char *const __argv[], char const *__optstring, struct option const *__longopts, int *__longindex)
int getopt_long(int __argc, char *const __argv[], char const *__optstring, struct option const *__longopts, int *__longindex)
#define __CCPP_END_DECLARATIONS
Definition config.h:8
#define __CCPP_BEGIN_DECLARATIONS
Definition config.h:7
Definition getopt.h:12
int val
Definition getopt.h:16
int has_arg
Definition getopt.h:14
int * flag
Definition getopt.h:15
char const * name
Definition getopt.h:13