Introduction
Introduction Statistics Contact Development Disclaimer Help
targ.h - ploot - simple plotting tools
git clone git://bitreich.org/ploot git://hg6vgqziawt5s4dj.onion/ploot
Log
Files
Refs
Tags
README
---
targ.h (549B)
---
1 #ifndef ARG_H
2 #define ARG_H
3
4 extern char *argv0;
5
6 #define ARGBEGIN \
7 for (argv0 = *argv, argv++, argc--; \
8 argv[0] != NULL && argv[0][0] == '-' && argv[0][1] != '\0'; \
9 argc--, argv++) { \
10 char **_argv, *_a; \
11 if (argv[0][1] == '-' && argv[0][2] == '\0') { \
12 argv++, argc--; \
13 break; \
14 } \
15 for (_argv = argv, _a = *argv + 1; *_a != '\0'; _a++) { \
16 switch (*_a)
17
18 #define ARGEND \
19 if (_argv != argv) \
20 break; \
21 } \
22 }
23
24 #define EARGF(x) \
25 ((argv[1] == NULL) ? ((x), (char *)0) : (argc--, argv++, argv[0]…
26
27 #endif
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.