1. comment error: comment say: ---> /* All functions return 1 if succesfull, 0 otherwise <--- but open_xtc return file descripto instead of a bool value. 2. how about change extern int open_xtc(char *filename,char *mode); to extern int open_xtc(const char *filename, const char *mode); Thanks. -- LI Daobing