From: Jim Meyering Date: Wed, 31 Mar 1993 03:44:09 +0000 (+0000) Subject: (parse_old_offset): Allow `0X' as well as `0x' prefix to indicate hex. X-Git-Tag: FILEUTILS-3_8_3b~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3dc0b45fc729852460cc4ed61f09566c1fd22dc;p=thirdparty%2Fcoreutils.git (parse_old_offset): Allow `0X' as well as `0x' prefix to indicate hex. --- diff --git a/src/od.c b/src/od.c index 2257713422..20476831ae 100644 --- a/src/od.c +++ b/src/od.c @@ -1359,7 +1359,7 @@ parse_old_offset (const char *s) radix = 10; else { - if (strlen (s) >= 2 && s[0] == '0' && s[1] == 'x') + if (strlen (s) >= 2 && s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) radix = 16; else radix = 8; @@ -1781,11 +1781,10 @@ main (argc, argv) n_files = argc - optind; - /* If the --compatible option was used, there may be from 0 to 3 - remaining command line arguments: - [file] [offset [pseudo_start]] - The offset and pseudo_start have the same syntax - FIXME: elaborate */ + /* If the --compatible option is used, there may be from 0 to 3 + remaining command line arguments; handle each case separately. + od [file] [[+]offset[.][b] [[+]label[.][b]]] + The offset and pseudo_start have the same syntax. */ if (flag_compatibility) {