This commit is contained in:
tavo-wasd 2024-06-06 18:02:48 -06:00
parent 7cc5a2417e
commit 28df5d2343

View file

@ -2,7 +2,7 @@
#define ARG_H #define ARG_H
/* int main(int argc, char *argv[]) */ /* int main(int argc, char *argv[]) */
/* opts (case 'a': break; default: printf("Unknown : %c\n", opt);); */ /* opts (case 'a': break; default: printf("Unknown: %c\n", opt);); */
#define opt argv[optidx][opt_i] #define opt argv[optidx][opt_i]
#define optarg (!argv[optidx + optargidx] ? NULL : (argv[optidx + optargidx++])) #define optarg (!argv[optidx + optargidx] ? NULL : (argv[optidx + optargidx++]))