utils.h File Reference
#include <stdio.h>
Go to the source code of this file.
Define Documentation
#define DIR_SEPARATOR '/' |
Function Documentation
void my_basename |
( |
const char * |
file, |
|
|
char * |
dest | |
|
) |
| | |
void my_basename_no_suffix |
( |
const char * |
file, |
|
|
char * |
dest | |
|
) |
| | |
void my_no_suffix |
( |
const char * |
file, |
|
|
char * |
dest | |
|
) |
| | |
char* my_strdup |
( |
const char * |
s |
) |
|
FILE* open_file_for_reading |
( |
const char * |
filename |
) |
|
Tries to open a file for reading; if filename == "-" or "stdin", returns standard input. An error message is printed in case of error.
FILE* open_file_for_writing |
( |
const char * |
filename |
) |
|
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.