Logo

index : raylib-jai

Bindings from https://solarium.technology

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/raylib-jai.git/html/Raylib/raylib/src/external/glfw/deps/getopt.h blob: e1eb540fd9d4a8ef2cbf9a17752f1cd26d37ca1b [raw] [clear marker]

        
0/* Copyright (c) 2012, Kim Gräsman
1 * All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are met:
5 * * Redistributions of source code must retain the above copyright notice,
6 * this list of conditions and the following disclaimer.
7 * * Redistributions in binary form must reproduce the above copyright notice,
8 * this list of conditions and the following disclaimer in the documentation
9 * and/or other materials provided with the distribution.
10 * * Neither the name of Kim Gräsman nor the names of contributors may be used
11 * to endorse or promote products derived from this software without specific
12 * prior written permission.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL KIM GRÄSMAN BE LIABLE FOR ANY DIRECT,
18 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef INCLUDED_GETOPT_PORT_H
27#define INCLUDED_GETOPT_PORT_H
28
29#if defined(__cplusplus)
30extern "C" {
31#endif
32
33extern const int no_argument;
34extern const int required_argument;
35extern const int optional_argument;
36
37extern char* optarg;
38extern int optind, opterr, optopt;
39
40struct option {
41 const char* name;
42 int has_arg;
43 int* flag;
44 int val;
45};
46
47int getopt(int argc, char* const argv[], const char* optstring);
48
49int getopt_long(int argc, char* const argv[],
50 const char* optstring, const struct option* longopts, int* longindex);
51
52#if defined(__cplusplus)
53}
54#endif
55
56#endif // INCLUDED_GETOPT_PORT_H
57
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit