| OLD | NEW |
| 1 /* $Id: test_hd.c 1827 2007-04-22 05:09:49Z peter $ | 1 /* |
| 2 * | 2 * |
| 3 * Simple hexidecimal dump, two hex digits per line. | 3 * Simple hexidecimal dump, two hex digits per line. |
| 4 * | 4 * |
| 5 * Copyright (C) 2004-2007 Peter Johnson | 5 * Copyright (C) 2004-2007 Peter Johnson |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| 11 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 printf("%02x \n", ch); | 50 printf("%02x \n", ch); |
| 51 | 51 |
| 52 if (ferror(bfile)) { | 52 if (ferror(bfile)) { |
| 53 fprintf(stderr, "Error reading from `%s'.\n", argv[1]); | 53 fprintf(stderr, "Error reading from `%s'.\n", argv[1]); |
| 54 return EXIT_FAILURE; | 54 return EXIT_FAILURE; |
| 55 } | 55 } |
| 56 | 56 |
| 57 fclose(bfile); | 57 fclose(bfile); |
| 58 return EXIT_SUCCESS; | 58 return EXIT_SUCCESS; |
| 59 } | 59 } |
| OLD | NEW |