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 */
|