#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include "rdd.h"
#include "writer.h"
Go to the source code of this file.
Functions | |
int | rdd_open_file_writer (RDD_WRITER **w, const char *path) |
Creates a writer that writes to a file. | |
Variables | |
static char | copyright [] |
int rdd_open_file_writer | ( | RDD_WRITER ** | w, | |
const char * | path | |||
) |
Creates a writer that writes to a file.
w | output value: the new writer object | |
path | the name of the file that the new writer will write to |
RDD_OK
on success.rdd_open_file_writer()
will create file path
if it does not exist. It will fail if the directory in which path
must be created does not exist. If path
already exists then rdd_open_file_writer()
will silently truncate the existing file.
Definition at line 55 of file filewriter.c.
References RDD_BADARG, RDD_EOPEN, and rdd_open_fd_writer().
char copyright[] [static] |
Initial value:
"@(#) Copyright (c) 2002-2004\n\ Netherlands Forensic Institute. All rights reserved.\n"
Definition at line 34 of file filewriter.c.