#include <eh_utils.h>#include <stdio.h>#include <string.h>#include <errno.h>Go to the source code of this file.
Defines | |
| #define | DATA_DELIMETER ":" |
| #define | TOKEN_DELIMETER "," |
Functions | |
| gssize | eh_fread_int32_from_be (const void *ptr, gssize size, gssize nitems, FILE *stream) |
| gssize | eh_fread_int64_from_be (const void *ptr, gssize size, gssize nitems, FILE *stream) |
| gssize | eh_fwrite_int32_to_be (const void *ptr, gssize size, gssize nitems, FILE *stream) |
| gssize | eh_fwrite_int64_to_be (const void *ptr, gssize size, gssize nitems, FILE *stream) |
| gssize | getline (gchar **lineptr, gsize *n, FILE *stream) |
| gchar * | eh_scan_str (FILE *fp, GError **error) |
| gchar ** | eh_scan_str_array (FILE *fp, gint *len, GError **error) |
| gint * | eh_scan_int_array (FILE *fp, gint *len, GError **error) |
| double * | eh_scan_dbl_array (FILE *fp, gint *len, GError **error) |
| gboolean * | eh_scan_boolean_array (FILE *fp, gint *len, GError **error) |
| void | eh_print_msg (int msg_level, char *function_name, char *msg) |
| char * | eh_input_str (char *msg, char *default_str) |
| gboolean | eh_input_boolean (char *msg, gboolean default_val) |
| gchar * | eh_get_input_val (FILE *fp, char *msg, char *default_str) |
| gssize eh_fread_int32_from_be | ( | const void * | ptr, | |
| gssize | size, | |||
| gssize | nitems, | |||
| FILE * | stream | |||
| ) |
| gssize eh_fread_int64_from_be | ( | const void * | ptr, | |
| gssize | size, | |||
| gssize | nitems, | |||
| FILE * | stream | |||
| ) |
| gssize eh_fwrite_int32_to_be | ( | const void * | ptr, | |
| gssize | size, | |||
| gssize | nitems, | |||
| FILE * | stream | |||
| ) |
| gssize eh_fwrite_int64_to_be | ( | const void * | ptr, | |
| gssize | size, | |||
| gssize | nitems, | |||
| FILE * | stream | |||
| ) |
| gchar* eh_get_input_val | ( | FILE * | fp, | |
| char * | msg, | |||
| char * | default_str | |||
| ) |
Definition at line 667 of file eh_io.c.
References eh_new, and S_LINEMAX.
Referenced by sedflux_get_file_name_interactively().
| gboolean eh_input_boolean | ( | char * | msg, | |
| gboolean | default_val | |||
| ) |
| char* eh_input_str | ( | char * | msg, | |
| char * | default_str | |||
| ) |
Definition at line 606 of file eh_io.c.
References eh_new, and S_LINEMAX.
Referenced by fill_sedflux_info_file().
| void eh_print_msg | ( | int | msg_level, | |
| char * | function_name, | |||
| char * | msg | |||
| ) |
| gboolean* eh_scan_boolean_array | ( | FILE * | fp, | |
| gint * | len, | |||
| GError ** | error | |||
| ) |
Definition at line 443 of file eh_io.c.
References eh_free, eh_new, eh_require, eh_return_val_if_fail, eh_scan_str_array(), and eh_str_to_boolean().
| double* eh_scan_dbl_array | ( | FILE * | fp, | |
| gint * | len, | |||
| GError ** | error | |||
| ) |
Definition at line 396 of file eh_io.c.
References eh_free, eh_new, eh_require, eh_return_val_if_fail, eh_scan_str_array(), and eh_str_to_dbl().
| gint* eh_scan_int_array | ( | FILE * | fp, | |
| gint * | len, | |||
| GError ** | error | |||
| ) |
Definition at line 348 of file eh_io.c.
References eh_free, eh_new, eh_require, eh_return_val_if_fail, eh_scan_str_array(), and eh_str_to_int().
| gchar* eh_scan_str | ( | FILE * | fp, | |
| GError ** | error | |||
| ) |
Definition at line 274 of file eh_io.c.
References eh_require, eh_return_val_if_fail, eh_set_file_error_from_errno(), and getline().
Referenced by eh_scan_str_array().
| gchar** eh_scan_str_array | ( | FILE * | fp, | |
| gint * | len, | |||
| GError ** | error | |||
| ) |
Definition at line 306 of file eh_io.c.
References eh_free, eh_require, eh_return_val_if_fail, eh_scan_str(), and eh_set_file_error_from_errno().
Referenced by eh_scan_boolean_array(), eh_scan_dbl_array(), and eh_scan_int_array().
| gssize getline | ( | gchar ** | lineptr, | |
| gsize * | n, | |||
| FILE * | stream | |||
| ) |
Definition at line 209 of file eh_io.c.
References eh_new, and eh_renew.
Referenced by eh_scan_str().
1.5.2