FEDEM Solver  R8.0
Source code of the dynamics solver
Macros
FFaIO.H File Reference

Functions and data type for direct access of large binary files. More...

#include <stdio.h>
Include dependency graph for FFaIO.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Fopen   fopen
 Opens a binary file. More...
 
#define Fclose   fclose
 Closes a binary file. More...
 
#define Ftell   ftell
 Returns current file position. More...
 
#define Fseek   fseek
 Sets the file position. More...
 
#define long_int   long int
 64-bit integer type. More...
 
#define FT_rb   "rb"
 File open mode for reading. More...
 
#define FT_wb   "wb"
 File open mode for writing. More...
 
#define FT_ab   "ab"
 File open mode for appending. More...
 
#define FT_rbp   "rb+"
 File open mode for reading and writing. More...
 
#define FT_wbp   "wb+"
 File open mode for reading and writing, truncate existing file. More...
 
#define FT_tmp   "wb+"
 File open mode for temporary file. More...
 
#define FT_open   Fopen
 Opens a binary file. More...
 
#define FT_close   Fclose
 Closes a binary file. More...
 
#define FT_tell   Ftell
 Returns current file position. More...
 
#define FT_seek   Fseek
 Sets the file position. More...
 
#define FT_read(buf, n, m, f)   fread((void*)buf,n,m,f)
 Reads an array from file. More...
 
#define FT_write(buf, n, m, f)   fwrite((void*)buf,n,m,f)
 Writes an array to file. More...
 
#define FT_setbuf(n)   false
 Dummy doing nothing. More...
 
#define FT_flush   fflush
 Flushes the file buffer(s) to disk. More...
 
#define FT_getc   fgetc
 Reads one character from file. More...
 
#define FT_ungetc   ungetc
 Puts back one character to the file stream. More...
 
#define FT_gets   fgets
 Reads a string from file. More...
 
#define FT_eof   feof
 Checks for end-of-file. More...
 
#define FT_int   long_int
 64-bit integer type. More...
 
#define FT_FILE   FILE*
 File pointer. More...
 

Detailed Description

Functions and data type for direct access of large binary files.

The symbols in this file are provided to easily enable switching between standard and low-level file IO on windows platforms, through the FT_USE_LOWLEVEL_IO preprocessor macro

Macro Definition Documentation

◆ Fclose

#define Fclose   fclose

Closes a binary file.

◆ Fopen

#define Fopen   fopen

Opens a binary file.

◆ Fseek

#define Fseek   fseek

Sets the file position.

◆ FT_ab

#define FT_ab   "ab"

File open mode for appending.

◆ FT_close

#define FT_close   Fclose

Closes a binary file.

◆ FT_eof

#define FT_eof   feof

Checks for end-of-file.

◆ FT_FILE

#define FT_FILE   FILE*

File pointer.

◆ FT_flush

#define FT_flush   fflush

Flushes the file buffer(s) to disk.

◆ FT_getc

#define FT_getc   fgetc

Reads one character from file.

◆ FT_gets

#define FT_gets   fgets

Reads a string from file.

◆ FT_int

#define FT_int   long_int

64-bit integer type.

◆ FT_open

#define FT_open   Fopen

Opens a binary file.

◆ FT_rb

#define FT_rb   "rb"

File open mode for reading.

◆ FT_rbp

#define FT_rbp   "rb+"

File open mode for reading and writing.

◆ FT_read

#define FT_read (   buf,
  n,
  m,
 
)    fread((void*)buf,n,m,f)

Reads an array from file.

◆ FT_seek

#define FT_seek   Fseek

Sets the file position.

◆ FT_setbuf

#define FT_setbuf (   n)    false

Dummy doing nothing.

◆ FT_tell

#define FT_tell   Ftell

Returns current file position.

◆ FT_tmp

#define FT_tmp   "wb+"

File open mode for temporary file.

◆ FT_ungetc

#define FT_ungetc   ungetc

Puts back one character to the file stream.

◆ FT_wb

#define FT_wb   "wb"

File open mode for writing.

◆ FT_wbp

#define FT_wbp   "wb+"

File open mode for reading and writing, truncate existing file.

◆ FT_write

#define FT_write (   buf,
  n,
  m,
 
)    fwrite((void*)buf,n,m,f)

Writes an array to file.

◆ Ftell

#define Ftell   ftell

Returns current file position.

◆ long_int

#define long_int   long int

64-bit integer type.