File: getopt_long.h

package info (click to toggle)
sntop 1.4.3-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: ansic: 1,424; makefile: 138; sh: 5
file content (34 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (7)
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
29
30
31
32
33
34
/*
 * sntop - simple network top - a top-like console network status tool
 * getopt.h - declarations needed for getopt_long()
 * 07.31.2000
 *
 * robert m love	<rml@tech9.net>
 * chris m rivera	<cmrivera@ufl.edu>
 *
 * This is free software under the GNU Public License (see COPYING)
 *
 * Copyright (C) 2000 Robert M. Love and Christopher M. Rivera
 *
 * All code by the above authors unless otherwise specified.
 */

#ifndef _GETOPT_LONG_H
#define _GETOPT_LONG_H 1

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

struct option {
  const char *name;
  int has_arg;
  int *flag;
  int val;
};

extern int getopt_long (int argc, char *const *argv, const char *shortopts,
		        const struct option *longopts, int *longind);

#endif /* _GETOPT_LONG_H */