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.