#include <stdio.h>
Go to the source code of this file.
#define DIR_SEPARATOR '/' |
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 | ) |
|
Our version of strdup.
Definition at line 61 of file utils.c.
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.
Definition at line 19 of file utils.c.
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.
Definition at line 25 of file utils.c.