src/filewriter.c File Reference

#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"

Include dependency graph for filewriter.c:

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 []


Function Documentation

int rdd_open_file_writer ( RDD_WRITER **  w,
const char *  path 
)

Creates a writer that writes to a file.

Parameters:
w output value: the new writer object
path the name of the file that the new writer will write to
Returns:
Returns RDD_OK on success.
Routine 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().

Here is the call graph for this function:


Variable Documentation

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.


Generated on Sun Feb 6 12:36:09 2011 for rdd by  doxygen 1.5.6