aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/bitops.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2010-01-18 15:18:44 -0900
committerDavid M. Syzdek <david@syzdek.net>2010-01-18 15:18:44 -0900
commit803469d41c2935f5e2e445344d98c71aaf301408 (patch)
treedabe129d64d43f7313b5689c5cdf862d80e63e27 /src/bitops.c
parente670fb7163a98aa823dc09ef82926c5a75f7e577 (diff)
downloaddmstools-803469d41c2935f5e2e445344d98c71aaf301408.tar.gz
dmstools-803469d41c2935f5e2e445344d98c71aaf301408.tar.bz2
dmstools-803469d41c2935f5e2e445344d98c71aaf301408.tar.xz
dmstools-803469d41c2935f5e2e445344d98c71aaf301408.zip
Updating bitops to use same flag for hex output
Diffstat (limited to 'src/bitops.c')
-rw-r--r--src/bitops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bitops.c b/src/bitops.c
index 74dd85f..5fc0a07 100644
--- a/src/bitops.c
+++ b/src/bitops.c
@@ -165,7 +165,7 @@ int main(int argc, char * argv[])
165 uint32_t var2; 165 uint32_t var2;
166 166
167 // getopt options 167 // getopt options
168 static char short_opt[] = "BDhHOV"; 168 static char short_opt[] = "BDhOVX";
169 static struct option long_opt[] = 169 static struct option long_opt[] =
170 { 170 {
171 {"help", no_argument, 0, 'h'}, 171 {"help", no_argument, 0, 'h'},
@@ -191,15 +191,15 @@ int main(int argc, char * argv[])
191 case 'h': 191 case 'h':
192 my_usage(); 192 my_usage();
193 return(0); 193 return(0);
194 case 'H':
195 opts = MY_OPT_HEX;
196 break;
197 case 'O': 194 case 'O':
198 opts = MY_OPT_OCT; 195 opts = MY_OPT_OCT;
199 break; 196 break;
200 case 'V': 197 case 'V':
201 my_version(); 198 my_version();
202 return(0); 199 return(0);
200 case 'X':
201 opts = MY_OPT_HEX;
202 break;
203 case '?': 203 case '?':
204 fprintf(stderr, _("Try `%s --help' for more information.\n"), PROGRAM_NAME); 204 fprintf(stderr, _("Try `%s --help' for more information.\n"), PROGRAM_NAME);
205 return(1); 205 return(1);
@@ -379,8 +379,8 @@ void my_usage()
379 printf(_("Usage: %s [options] num1 num2\n" 379 printf(_("Usage: %s [options] num1 num2\n"
380 " -B display output in binary notation\n" 380 " -B display output in binary notation\n"
381 " -D display output in decimal notation\n" 381 " -D display output in decimal notation\n"
382 " -H display output in hexadecimal notation\n"
383 " -O display output in octal notation\n" 382 " -O display output in octal notation\n"
383 " -X display output in hexadecimal notation\n"
384 "\n" 384 "\n"
385 "Input Notation:\n" 385 "Input Notation:\n"
386 " 00NNNNNNNN input number is in binary\n" 386 " 00NNNNNNNN input number is in binary\n"