#include #include "aplinks.h" int get_fs_num_bias(int fat_loc, int *fs_num_l, int *fs_bias_l, int *fs_num_h, int *fs_bias_h) { *fs_num_l = fat_loc / SECTOR_SIZE; *fs_bias_l= fat_loc % SECTOR_SIZE; if(*fs_bias_l == (SECTOR_SIZE - 1)){ *fs_num_h = *fs_num_l + 1; *fs_bias_h = 0; } else{ *fs_num_h = *fs_num_l; *fs_bias_h = *fs_bias_l + 1; } return 0; }