#ifndef __IDX_H_ENTRY_H__
#define __IDX_H_ENTRY_H__

typedef struct {
   unsigned char header[4];
   int length;
   unsigned char *data;
} IDX1_DATA ;

typedef struct {
   unsigned char header[4];
   int nimages;
   int nrows;
   int ncols;
   unsigned char *data;
} IDX3_DATA ;

int fread_idx1_file( char *slabelfname, IDX1_DATA *idxdata);

#endif  /* __IDX_H_ENTRY_H__ */

#ifndef __IDX_H_ENTRY_H__
#define __IDX_H_ENTRY_H__

typedef struct {
   unsigned char header[4];
   int length;
   unsigned char *data;
} IDX1_DATA ;

typedef struct {
   unsigned char header[4];
   int nimages;
   int nrows;
   int ncols;
   int length;
   unsigned char *data;
} IDX3_DATA ;

int fread_idx1_file( char *slabelfname, IDX1_DATA *idxdata);

#endif  /* __IDX_H_ENTRY_H__ */

Add a length field to the IDX3_DATA structure.
Add a length field to the IDX3_DATA structure.
