From a3dc0b45fc729852460cc4ed61f09566c1fd22dc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 31 Mar 1993 03:44:09 +0000 Subject: (parse_old_offset): Allow `0X' as well as `0x' prefix to indicate hex. --- src/od.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/od.c b/src/od.c index 225771342..20476831a 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) { -- cgit v1.2.3-70-g09d2