Go to the documentation of this file.
43 #define MALCHK(x) if(!x){fprintf(stderr, "Out of memory, file: %s, line: %d", __FILE__, __LINE__); exit(EXIT_FAILURE);}
51 #define FILCHK(x) if(!x){fprintf(stderr, "File opening failure - in file: %s, line: %d", __FILE__, __LINE__); exit(EXIT_FAILURE);}
82 int maxval(
int val1,
int val2);
88 int minval(
int val1,
int val2);
118 char *
strmove (
char *to,
char *from);
125 char *
strins (
char *dest,
const char *ins);
131 char *
strtrim (
char *str,
int (*left) (
int),
int (*right) (
int));
149 int read_int(
const char *prompt,
const int lo_val,
const int hi_val);
155 int read_char(
const char *prompt,
const int lo_val,
const int hi_val,
int (*char_ok)(
int ch));
161 int menu(
const char *menurow,
const int lo_sel,
const int hi_sel);
167 int is_val_ok(
const int val,
const int lo_val,
const int hi_val);