libssh 0.12.0
The SSH library
Loading...
Searching...
No Matches
getopt.h
1/*
2 * This file is part of the SSH Library
3 *
4 * Copyright (c) 2026 Mingyuan Li <2560359315@qq.com>
5 *
6 * The SSH Library is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, version 2.1 of the License.
9 *
10 * The SSH Library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13 * License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with the SSH Library; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 * MA 02111-1307, USA.
19 */
20
21#ifndef LIBSSH_GETOPT_H
22#define LIBSSH_GETOPT_H
23
24#include "config.h"
25
26#ifdef HAVE_GETOPT_H
27#include <getopt.h>
28#else
29/* Bundled getopt fallback (src/external/getopt.c) */
30extern int opterr, optind, optopt, optreset;
31extern char *optarg;
32int getopt(int nargc, char *const nargv[], const char *ostr);
33#endif
34
35#endif /* LIBSSH_GETOPT_H */