#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "options.h"
#include "utils.h"
Go to the source code of this file.
◆ genb_fclose_tmp()
| int genb_fclose_tmp |
( |
FILE * |
filef, |
|
|
const char * |
fname |
|
) |
| |
Close file opened with genb_fopen
Definition at line 93 of file utils.c.
◆ genb_fopen()
| FILE * genb_fopen |
( |
const char * |
fname, |
|
|
const char * |
mode |
|
) |
| |
Open file allowing for output path prefix
Definition at line 46 of file utils.c.
◆ genb_fopen_tmp()
| FILE * genb_fopen_tmp |
( |
const char * |
fname | ) |
|
Open file allowing for output path prefix
file is opened for reading/writing with a temporary suffix allowing for the matching close call to check the output is different before touching the target file.
Definition at line 70 of file utils.c.
◆ genb_fpath()
| char * genb_fpath |
( |
const char * |
fname | ) |
|
get a pathname with the output prefix prepended
- Parameters
-
- Returns
- full prefixed path to file caller must free
Definition at line 21 of file utils.c.