home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cslio205.zip / INCLUDE / CSENDIAN.H < prev    next >
C/C++ Source or Header  |  1997-01-21  |  1KB  |  40 lines

  1. /***********************************************************************
  2.  
  3.                        CSA Library, Free Evaluation Version 2.0.5 
  4.                                        Release: January 22th 1997 
  5.  
  6.        Functions to read/write U/S8, U/S16 and U/S32 types
  7.        from/to a little-endian file.
  8.        The return value will be 0 on success, and EOF on failure.
  9.  
  10.  
  11.                                            Copyright(c) 1994-1997 
  12.                                                           ComBits 
  13.                                                   The Netherlands 
  14. ***********************************************************************/
  15.  
  16. #ifndef __CSENDIAN_H
  17. #define __CSENDIAN_H
  18.  
  19. #include "stdio.h"
  20. #include "cstypes.h"
  21.  
  22. int ReadS8l(FILE *f,   S8 &i);
  23. int ReadU8l(FILE *f,   U8 &i);
  24. int ReadS16l(FILE *f, S16 &i);
  25. int ReadU16l(FILE *f, U16 &i);
  26. int ReadS32l(FILE *f, S32 &i);
  27. int ReadU32l(FILE *f, U32 &i);
  28.  
  29.  
  30.  
  31. int WriteS8l(FILE *f,   S8 i);
  32. int WriteU8l(FILE *f,   U8 i);
  33. int WriteS16l(FILE *f, S16 i);
  34. int WriteU16l(FILE *f, U16 i);
  35. int WriteS32l(FILE *f, S32 i);
  36. int WriteU32l(FILE *f, U32 i);
  37.  
  38.  
  39. #endif
  40.