+ } else if (STRNCMP_LITERAL (argv[i], "--offset=") == 0) {
+ char *p;
+ opt = argv[i] + sizeof ("--offset=") - 1;
+ offset = strtol (opt, &p, 10);
+ if (*opt == '\0' || p == opt || *p != '\0') {
+ fprintf (stderr, "Invalid value for --offset: %s\n", opt);
+ return 1;
+ }
+ } else if (STRNCMP_LITERAL (argv[i], "--limit=") == 0) {
+ char *p;
+ opt = argv[i] + sizeof ("--limit=") - 1;
+ limit = strtoul (opt, &p, 10);
+ if (*opt == '\0' || p == opt || *p != '\0') {
+ fprintf (stderr, "Invalid value for --limit: %s\n", opt);
+ return 1;
+ }