File: zgetopt.h

package info (click to toggle)
libzia 4.36-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,320 kB
  • sloc: ansic: 24,172; sh: 4,408; makefile: 211
file content (28 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
    zgetopt.h - getopt compatibility layer
    Copyright (C) 2011 Ladislav Vaiz <ok1zia@nagano.cz>

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 2 as published by the Free Software Foundation.

*/

#ifndef __ZGETOPT_H
#define __ZGETOPT_H

#include <libziaint.h>

#ifdef Z_HAVE_GETOPT_H
#include <getopt.h>
#else

LIBZIA_API char *optarg;
LIBZIA_API int optind;
LIBZIA_API extern int opterr;
LIBZIA_API extern int optopt;

int getopt(int argc, char *argv[], char *optstring);

#endif
#endif