I/O utilities


Functions

static void myfscanf (int expected, const char *description, FILE *stream, const char *format,...)
 A wrapper of fscanf.
static void bad_uint (const char *s)
 Report an error; exit with failure.
static unsigned get_uint (const char *s)
 Parse an unsigned integer in the string s; exit with failure if unsuccessful.


Function Documentation

static void bad_uint ( const char *  s  )  [static]

Report an error; exit with failure.

Definition at line 219 of file types.c.

Referenced by get_uint().

static unsigned get_uint ( const char *  s  )  [static]

Parse an unsigned integer in the string s; exit with failure if unsuccessful.

Definition at line 227 of file types.c.

References bad_uint().

Referenced by parse_command_line().

static void myfscanf ( int  expected,
const char *  description,
FILE *  stream,
const char *  format,
  ... 
) [static]

A wrapper of fscanf.

Exit with failure unless expected elements were successfully read. As a special case, expected can also be NULL. The string description is used in error messages.

Definition at line 198 of file types.c.

Referenced by process_input().