I defined a function in file.c
#include file.h unsigned char IsOWKeyRight(const CARD_KEY *Key);
typedef struct{ unsigned char ID, unsigned char ExtID, unsigned char pwd }CARD_KEY;
extern unsigned char IsOWKeyRight(const CARD_KEY *Key);
I am so sorry that I wrote wrong codes here, but the code in the file is write. Thank you, Oleg,anyhow!