~ubuntu-branches/ubuntu/jaunty/plotutils/jaunty

« back to all changes in this revision

Viewing changes to lib/getopt1.c

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2007-05-10 19:48:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070510194854-mrr3lgwzpxd8hovo
Tags: 2.5-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include "getopt.h"
6
6
 
7
7
int
8
 
#ifdef _HAVE_PROTOS
9
8
getopt_long (int argc, char *const *argv, const char *options, 
10
9
             const struct option *long_options, int *opt_index)
11
 
#else
12
 
getopt_long (argc, argv, options, long_options, opt_index)
13
 
     int argc;
14
 
     char *const *argv;
15
 
     const char *options;
16
 
     const struct option *long_options;
17
 
     int *opt_index;
18
 
#endif
19
10
{
20
11
  return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
21
12
}
26
17
   instead.  */
27
18
 
28
19
int
29
 
#ifdef _HAVE_PROTOS
30
20
getopt_long_only (int argc, char *const *argv, const char *options,
31
21
                  const struct option *long_options, int *opt_index)
32
 
#else
33
 
getopt_long_only (argc, argv, options, long_options, opt_index)
34
 
     int argc;
35
 
     char *const *argv;
36
 
     const char *options;
37
 
     const struct option *long_options;
38
 
     int *opt_index;
39
 
#endif
40
22
{
41
23
  return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
42
24
}