Rev 38 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 38 | Rev 44 | ||
---|---|---|---|
Line 1066... | Line 1066... | ||
1066 | int dump_file_hex (const char *pathname) |
1066 | int dump_file_hex (const char *pathname) |
1067 | { |
1067 | { |
1068 | buffer_t file; |
1068 | buffer_t file; |
1069 | 1069 | ||
1070 | ASSERT_WITH_ERRNO (Buffer_ReadFromFile (&file, pathname)); |
1070 | ASSERT_WITH_ERRNO (Buffer_ReadFromFile (&file, pathname)); |
1071 | hex_fprintf (stdout, file.bytes, file.size, 16, "%s (%zd bytes):\n", pathname, file.size); |
1071 | hex_fprintf (stdout, file.bytes, file.size, 16, "%s (%zd bytes):\n", &pathname[strcspn (pathname, "/\\")], file.size); |
1072 | return (0); |
1072 | return (0); |
1073 | } |
1073 | } |