#include <string.h>
#include <errno.h>
#include "csm_all.h"
Go to the source code of this file.
Function Documentation
Our version of strdup.
Definition at line 61 of file utils.c.
FILE * open_file |
( |
const char * |
filename, |
|
|
const char * |
mode |
|
) |
| |
Wraps around fopen and provides error message.
Definition at line 10 of file utils.c.
Tries to open a file for reading; if filename == "-" or "stdin", returns standard input. An error message is printed in case of error.
Definition at line 19 of file utils.c.
Tries to open a file for reading; if filename == "-" | "stdout", returns standard output. If it's "stderr" same. An error message is printed in case of error.
Definition at line 25 of file utils.c.