FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_bin_io.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include "hecmw_bin_io.h"
Include dependency graph for hecmw_bin_io.c:

Go to the source code of this file.

Data Structures

union  endian_check_u
 

Macros

#define SUCCESS   0
 
#define FAIL   -1
 
#define TRUE   1
 
#define FALSE   0
 
#define RES_BIN_HEADER   "HECMW_BINARY_RESULT"
 

Functions

void hecmw_set_endian_info (void)
 
int hecmw_write_bin_value (unsigned char *x, int size, FILE *fp)
 
int hecmw_write_bin_int (int x, FILE *fp)
 
int hecmw_write_bin_int_arr (int *x, int n, FILE *fp)
 
int hecmw_write_bin_double (double x, FILE *fp)
 
int hecmw_write_bin_double_arr (double *x, int n, FILE *fp)
 
int hecmw_read_bin_value (unsigned char *x, int size, FILE *fp)
 
int hecmw_read_bin_int (int *x, FILE *fp)
 
int hecmw_read_bin_int_arr (int *x, int n, FILE *fp)
 
int hecmw_read_bin_double (double *x, FILE *fp)
 
int hecmw_read_bin_double_arr (double *x, int n, FILE *fp)
 
int hecmw_write_bin (FILE *fp, const char *fmt,...)
 
int hecmw_read_bin (FILE *fp, const char *fmt,...)
 

Macro Definition Documentation

◆ FAIL

#define FAIL   -1

Definition at line 26 of file hecmw_bin_io.c.

◆ FALSE

#define FALSE   0

Definition at line 31 of file hecmw_bin_io.c.

◆ RES_BIN_HEADER

#define RES_BIN_HEADER   "HECMW_BINARY_RESULT"

Definition at line 36 of file hecmw_bin_io.c.

◆ SUCCESS

#define SUCCESS   0

Definition at line 25 of file hecmw_bin_io.c.

◆ TRUE

#define TRUE   1

Definition at line 30 of file hecmw_bin_io.c.

Function Documentation

◆ hecmw_read_bin()

int hecmw_read_bin ( FILE *  fp,
const char *  fmt,
  ... 
)

Definition at line 322 of file hecmw_bin_io.c.

◆ hecmw_read_bin_double()

int hecmw_read_bin_double ( double *  x,
FILE *  fp 
)

Definition at line 183 of file hecmw_bin_io.c.

Here is the call graph for this function:

◆ hecmw_read_bin_double_arr()

int hecmw_read_bin_double_arr ( double *  x,
int  n,
FILE *  fp 
)

Definition at line 191 of file hecmw_bin_io.c.

◆ hecmw_read_bin_int()

int hecmw_read_bin_int ( int *  x,
FILE *  fp 
)

Definition at line 156 of file hecmw_bin_io.c.

Here is the call graph for this function:

◆ hecmw_read_bin_int_arr()

int hecmw_read_bin_int_arr ( int *  x,
int  n,
FILE *  fp 
)

Definition at line 167 of file hecmw_bin_io.c.

◆ hecmw_read_bin_value()

int hecmw_read_bin_value ( unsigned char *  x,
int  size,
FILE *  fp 
)

Definition at line 122 of file hecmw_bin_io.c.

Here is the caller graph for this function:

◆ hecmw_set_endian_info()

void hecmw_set_endian_info ( void  )

Definition at line 53 of file hecmw_bin_io.c.

Here is the caller graph for this function:

◆ hecmw_write_bin()

int hecmw_write_bin ( FILE *  fp,
const char *  fmt,
  ... 
)

Definition at line 240 of file hecmw_bin_io.c.

◆ hecmw_write_bin_double()

int hecmw_write_bin_double ( double  x,
FILE *  fp 
)

Definition at line 104 of file hecmw_bin_io.c.

Here is the call graph for this function:

◆ hecmw_write_bin_double_arr()

int hecmw_write_bin_double_arr ( double *  x,
int  n,
FILE *  fp 
)

Definition at line 108 of file hecmw_bin_io.c.

◆ hecmw_write_bin_int()

int hecmw_write_bin_int ( int  x,
FILE *  fp 
)

Definition at line 84 of file hecmw_bin_io.c.

Here is the call graph for this function:

◆ hecmw_write_bin_int_arr()

int hecmw_write_bin_int_arr ( int *  x,
int  n,
FILE *  fp 
)

Definition at line 89 of file hecmw_bin_io.c.

◆ hecmw_write_bin_value()

int hecmw_write_bin_value ( unsigned char *  x,
int  size,
FILE *  fp 
)

Definition at line 57 of file hecmw_bin_io.c.

Here is the caller graph for this function: