next up previous contents
Next: Opening and closing cyclic Up: The C API Previous: The C API   Contents

Creating a cyclic log

The routine to create a cyclic log is CYC_create. The function prototype is:

int CYC_create(const char* filename, long fileSize);
The file must not already exist. The return value is zero for success and -1 on error. If an error is returned then errno contains the error code.

Andrew Marlow 2004-01-01