Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Miscellaneous routines to handle files and directories


Defines

#define BSIZ   4096

Functions

int exist (char *file)
char * get_path (char *file)
int remove_path (char *file)
int f_lines (char *file)
int read_DOS (int imno, char *data, int size)
int write_DOS (int imno, char *truedata, int size)

Define Documentation

#define BSIZ   4096
 

count number of lines in file

Parameters:
file [char *] filename

Definition at line 98 of file files.c.

Referenced by f_lines().


Function Documentation

int exist char *  file  ) 
 

checks existence of file or directory

Parameters:
file [char *] filename

Definition at line 31 of file files.c.

References exist_extension().

Referenced by close_E3D_file(), confirme_erase(), create_cube(), create_E3D_file(), create_frame(), create_spec(), create_table(), header_cube(), header_frame(), header_spec(), open_cube(), open_frame(), open_spec(), open_table(), save_3D_max(), set_lens_coordinates(), and set_lenses_coord().

char* get_path char *  file  ) 
 

remove path from filename

Parameters:
file [char *] filename

Definition at line 55 of file files.c.

Referenced by open_E3D_file().

int remove_path char *  file  ) 
 

remove path from filename

Parameters:
file [char *] filename

Definition at line 79 of file files.c.

Referenced by close_E3D_file(), and open_E3D_file().

int f_lines char *  file  ) 
 

Definition at line 100 of file files.c.

References BSIZ.

int read_DOS int  imno,
char *  data,
int  size
 

reads a numerical value from DOS binaries

Parameters:
imno [int ] file number
data [char *] pointer on data
size [int ] size of item (in bytes)

Definition at line 150 of file files.c.

int write_DOS int  imno,
char *  truedata,
int  size
 

write a numerical value to DOS binaries

Parameters:
imno [int ] file number
truedata [char *] pointer on data
size [int ] size of item (in bytes)

Definition at line 186 of file files.c.


Generated on Tue Jul 1 17:35:47 2003 for IFU_C_iolibs by doxygen1.3