|
|
1.1 root 1: /* tai_args.c - Argument processing routines */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/quipu/RCS/tai_args.c,v 7.0 89/11/23 22:18:09 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/quipu/RCS/tai_args.c,v 7.0 89/11/23 22:18:09 mrose Rel $
9: *
10: *
11: * $Log: tai_args.c,v $
12: * Revision 7.0 89/11/23 22:18:09 mrose
13: * Release 6.0
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: #include "quipu/util.h"
29: #include "quipu/attr.h"
30:
31: extern char *dsaoidtable,
32: *dsatailfile,
33: *mydsaname,
34: *treedir;
35:
36: static char *usage = "[-t <tailor>] [-c <dsa name>] [-T <oidtable>] [-D <directory>]";
37:
38: extern LLog * log_dsap;
39:
40: dsa_tai_args (acptr,avptr)
41: int *acptr;
42: char ***avptr;
43: {
44: char ** av;
45: register char *cp;
46: int cnt;
47:
48: if (acptr == (int *)NULL)
49: return;
50:
51: av = *avptr;
52: av++, cnt = 1;
53:
54: while ((cp = *av) && *cp == '-') {
55: switch (*++cp) {
56: case 'T': dsaoidtable = *++av;
57: cnt++;
58: break;
59: case 'D': treedir = *++av;
60: cnt++;
61: break;
62: case 'c': mydsaname = *++av;
63: cnt++;
64: break;
65: case 't': dsatailfile = *++av;
66: cnt++;
67: break;
68:
69: default:
70: LLOG (log_dsap,LLOG_FATAL,("Unknown option\nUsage: %s %s\n",*avptr[0],usage));
71: fatal(-46,"Usage...");
72: }
73: av++;
74: cnt++;
75: }
76:
77: *acptr -= cnt;
78: *avptr = av;
79: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.