annotate liboctave/oct-getopt.c @ 5018:1c65a8e44ef9 ss-2-1-59

[project @ 2004-09-22 03:33:29 by jwe]
author jwe
date Wed, 22 Sep 2004 03:33:29 +0000
parents 7d48a8fba1d4
children 4c8a2e4e0717
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3505
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
1 /*
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
2
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
3 Copyright (C) 2000 John W. Eaton
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
4
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
5 This file is part of Octave.
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
6
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
7 Octave is free software; you can redistribute it and/or modify it
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
10 later version.
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
11
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
12 Octave is distributed in the hope that it will be useful, but WITHOUT
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
15 for more details.
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
16
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, write to the Free
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
20
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
21 */
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
22
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
23 #ifdef HAVE_CONFIG_H
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
24 #include <config.h>
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
25 #endif
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
26
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4365
diff changeset
27 #include "getopt.h"
3505
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
28
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
29 int
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
30 octave_getopt (int argc, char *const *argv, const char *optstring)
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
31 {
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
32 return getopt (argc, argv, optstring);
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
33 }
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
34
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
35 int
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
36 octave_getopt_long (int argc, char *const *argv, const char *options,
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
37 const struct option *long_options, int *opt_index)
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
38 {
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
39 return getopt_long (argc, argv, options, long_options, opt_index);
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
40 }
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
41
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
42
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
43 /*
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
44 ;;; Local Variables: ***
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
45 ;;; mode: C++ ***
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
46 ;;; End: ***
5a2c5361dbf1 [project @ 2000-02-01 11:04:15 by jwe]
jwe
parents:
diff changeset
47 */