.\" .\" $Id: cxSetWriteFunc.3,v 1.4 2003/03/06 04:54:41 chipx86 Exp $ .\" .\" Copyright (C) 2002-2003 The GNUpdate Project. .\" .\" This library is free software; you can redistribute it and/or .\" modify it under the terms of the GNU Library General Public .\" License as published by the Free Software Foundation; either .\" version 2 of the License, or (at your option) any later version. .\" .\" This library is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU .\" Library General Public License for more details. .\" .\" You should have received a copy of the GNU Library General Public .\" License along with this library; if not, write to the .\" Free Software Foundation, Inc., 59 Temple Place - Suite 330, .\" Boston, MA 02111-1307, USA. .\" .TH "cxSetWriteFunc" 3 "05 Mar 2003" "libcomprex" "The GNUpdate Project" .SH "NAME" cxSetWriteFunc \- Sets the write function for this file pointer. .SH "SYNOPSIS" .ft B #include void cxSetWriteFunc(CxFP *fp, size_t(*)(const void *, size_t, size_t, CxFP *) fnc); .ft R .SH "PARAMETERS" .TP .B "fp" The file pointer. .TP .B "fnc" The write function. .SH "DESCRIPTION" Sets the write function for this file pointer. This should work just like libc's fwrite() function, but with a CxFP instead of a FILE. It must write to the file stored in the archive. This function must be in the following format: The name of the function can be changed, of course. .SH "RETURNS" Nothing.