/ gwfile.h / Content
/* GWhere.
* Copyright (C) 2000 Sébastien LECACHEUR
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef GW_TOOLS_FILE_H
#define GW_TOOLS_FILE_H
#include
#include
#include "data/gwdata.h"
#define MAX_LINE 666
int gw_file_copy ( const gchar *source, const gchar *dest);
gchar * gw_file_read_until_c ( int fic, gchar c, int len);
gchar * gw_zfile_read_until_c ( gzFile fic, gchar c, int len);
gchar * gw_file_readline ( int fic, gchar *buf, int len);
gchar * gw_zfile_readline_sb ( gzFile fic, GWStringBuffer **sb);
gchar * gw_zfile_readline ( gzFile fic, gchar **buf, int len);
long gw_file_get_size ( FILE * file);
int gw_file_exists ( const gchar *pathname);
gchar * gw_file_get_name ( const gchar *pathname);
int gw_file_mkdir ( const gchar *pathname);
int gw_file_mkdirs ( const gchar *pathname);
int gw_zfile_uncompress ( const gchar *in_filepath, const gchar *out_filepath);
#endif