#include #include "aplinks.h" int chain_chk(int sec_num, unsigned char *fat_buffer[], unsigned char *data_buffer[]) { if(sec_num == 0){ return 0; } while(sec_num != 0xff0){ if(data_buffer[sec_num - 2] == NULL){ return -1; } sec_num = get_fat(sec_num, fat_buffer); } return 0; }