File: getargs.h

package info (click to toggle)
libcgns 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,740 kB
  • ctags: 4,493
  • sloc: ansic: 46,717; fortran: 1,341; sh: 368; makefile: 259
file content (39 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
/*
 * getargs.h - include file for getargs.c
 */

#ifndef _GETARGS_H_
#define _GETARGS_H_

#ifdef __cplusplus
# ifndef PROTOTYPE
#  define PROTOTYPE
# endif

extern "C" {
#endif

extern int argind;      /* index into argv array */
extern int argerr;      /* flag for printing errors */
extern char *argarg;    /* pointer to argument string */

void print_usage (
#ifdef PROTOTYPE
    char **usgmsg,      /* usage message */
    char *errmsg        /* error message */
#endif
);

int getargs (
#ifdef PROTOTYPE
    int argc,           /* number of arguments */
    char **argv,        /* argument list */
    char *ostr          /* option list */
#endif
);

#ifdef __cplusplus
}
#endif

#endif  /* _GETARGS_H_ */