#include <cross_studio_io.h> int debug_fread(void *ptr, int size, int nobj, DEBUG_FILE *stream);
debug_fread reads from stream into the array ptr at most nobj objects of size size and returns the number of objects read. debug_feof and debug_ferror can be used to determine status.
debug_fread is an extension provided by CrossWorks C.