Attachment 'fio.h'

Download

   1 #ifndef FIO_H
   2 #define FIO_H
   3 
   4 FILE  *MGHopen_file(char *fname, char *rwmode) ;
   5 int   putf(float f, FILE *fp) ;
   6 float getf(FILE *fp) ;
   7 
   8 int   fread1(int *v, FILE *fp) ;
   9 int   fread2(int *v, FILE *fp) ;
  10 int   fread3(int *v, FILE *fp) ;
  11 int   fread4(float *v, FILE *fp) ;
  12 double freadDouble(FILE *fp) ;
  13 float freadFloat(FILE *fp) ;
  14 int   freadInt(FILE *fp) ;
  15 long  long freadLong(FILE *fp) ;
  16 short freadShort(FILE *fp) ;
  17 
  18 /* return 1 if succeed, return 0 if fail */
  19 int freadDoubleEx(double *pd, FILE *fp) ;
  20 int freadFloatEx(float *pf, FILE *fp) ;
  21 int freadIntEx(int *pi, FILE *fp) ;
  22 int freadShortEx(short *ps, FILE *fp) ;
  23 
  24 int   fwriteDouble(double d, FILE *fp) ;
  25 int   fwriteFloat(float f, FILE *fp) ;
  26 int   fwriteShort(short s, FILE *fp) ;
  27 int   fwriteInt(int v, FILE *fp) ;
  28 int   fwriteLong(long long v, FILE *fp) ;
  29 int   fwrite1(int v,FILE *fp) ;
  30 int   fwrite2(int v, FILE *fp) ;
  31 int   fwrite3(int v, FILE *fp) ;
  32 int   fwrite4(int v, FILE *fp) ;
  33 
  34 char *fio_basename(char *pathname, char *ext);
  35 char *fio_dirname(char *pathname);
  36 char *fio_extension(char *pathname);
  37 int fio_DirIsWritable(char *dirname, int fname);
  38 int fio_FileExistsReadable(char *fname);
  39 int fio_IsDirectory(char *fname);
  40 int fio_NLines(char *fname);
  41 
  42 int fio_pushd(char *dir);
  43 int fio_popd(void);
  44 char *fio_fullpath(char *fname);
  45 
  46 //#define fwriteLong(l, fp)   fwrite4((int)l, fp)
  47 
  48 #endif

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.