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.- [get | view] (2009-01-26 22:35:32, 12.9 KB) [[attachment:fio.c]]
- [get | view] (2009-01-26 22:35:32, 1.3 KB) [[attachment:fio.h]]
- [get | view] (2009-01-26 22:35:32, 5.9 KB) [[attachment:load_mgh.m]]
- [get | view] (2009-01-26 22:35:32, 9.3 KB) [[attachment:matrix.h]]
- [get | view] (2009-01-26 22:35:32, 390.2 KB) [[attachment:mri.c]]
- [get | view] (2009-01-26 22:35:32, 48.5 KB) [[attachment:mri.h]]
- [get | view] (2009-01-26 22:35:32, 94.4 KB) [[attachment:mri_convert.c]]
- [get | view] (2009-01-26 22:35:32, 14.1 KB) [[attachment:mri_info.c]]
- [get | view] (2009-01-26 22:35:32, 395.4 KB) [[attachment:mriio.c]]
- [get | view] (2009-01-26 22:35:32, 2.4 KB) [[attachment:save_mgh.m]]
- [get | view] (2009-01-26 22:35:32, 2.2 KB) [[attachment:tags.c]]
- [get | view] (2009-01-26 22:35:32, 0.9 KB) [[attachment:tags.h]]
You are not allowed to attach a file to this page.