MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / get_dir_entries

Function get_dir_entries

src/fat_common.c:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45unsigned int get_dir_entries(const struct fat_boot_sector *fat_header)
46{
47 const unsigned int hi=fat_header->dir_entries[1];
48 const unsigned int lo=fat_header->dir_entries[0];
49 /*@ assert 0 <= hi < 1<<8; */
50 /*@ assert 0 <= hi<<8 < 1<<16; */
51 /*@ assert 0 <= lo < 1<<8; */
52 const unsigned int res=(hi<<8)|lo;
53 /*@ assert res <= 65535; */
54 return res;
55}
56
57unsigned int fat_sectors(const struct fat_boot_sector *fat_header)
58{

Callers 13

header_check_fatFunction · 0.85
fat_remove_used_spaceFunction · 0.85
FAT_init_rootdirFunction · 0.85
repair_FAT_tableFunction · 0.85
set_FAT_infoFunction · 0.85
log_fat_infoFunction · 0.85
log_fat2_infoFunction · 0.85
test_FATFunction · 0.85
dump_fat_info_ncursesFunction · 0.85
dump_2fat_info_ncursesFunction · 0.85
fat_dirFunction · 0.85
fat1x_rootdirFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_FATFunction · 0.68