console: Format tabs semi-intelligently
[attac-man.git] / include / file.h
blobc28137154f081faa603f4f83a0c3b51b5058e479
1 /*
2 Pacman Arena
3 Copyright (C) 2003 Nuno Subtil
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 /* $Id: file.h,v 1.2 2003/11/30 19:54:38 nsubtil Exp $ */
22 #ifndef _FILE_H
23 #define _FILE_H
25 #ifndef DATADIR
26 #define FILE_BASE_PATH "."
27 #else
28 #define FILE_BASE_PATH DATADIR
29 #endif
31 #define FILE_NAME_LEN 100
33 FILE *file_open(char *file);
34 void file_read_values32(void *ret, int n, FILE *fp);
35 void file_write_values32(void *src, int n, FILE *fp);
36 char *file_make_fname(char *file);
38 #endif