48 #include "Parser_dh.h"
49 #include "mat_dh_private.h"
52 #define __FUNC__ "openFile_dh"
54 openFile_dh (
const char *filenameIN,
const char *modeIN)
56 START_FUNC_DH FILE * fp = NULL;
58 if ((fp = fopen (filenameIN, modeIN)) == NULL)
60 sprintf (msgBuf_dh,
"can't open file: %s for mode %s\n", filenameIN,
62 SET_ERROR (NULL, msgBuf_dh);
67 #define __FUNC__ "closeFile_dh"
69 closeFile_dh (FILE * fpIN)
73 SET_V_ERROR (
"attempt to close file failed");
79 io_dh_print_ebin_mat_private (
int m,
int beg_row,
80 int *rp,
int *cval,
double *aval,
87 io_dh_read_ebin_mat_private (
int *m,
int **rp,
int **cval,
88 double **aval,
char *filename)
93 io_dh_print_ebin_vec_private (
int n,
int beg_row,
double *vals,
100 io_dh_read_ebin_vec_private (
int *n,
double **vals,
char *filename)