Blame gettext-tools/gnulib-tests/read-file.h

Packit 5b56b6
/* read-file.h -- read file contents into a string
Packit 5b56b6
   Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
Packit 5b56b6
   Written by Simon Josefsson.
Packit 5b56b6
Packit 5b56b6
   This program is free software; you can redistribute it and/or modify
Packit 5b56b6
   it under the terms of the GNU General Public License as published by
Packit 5b56b6
   the Free Software Foundation; either version 3, or (at your option)
Packit 5b56b6
   any later version.
Packit 5b56b6
Packit 5b56b6
   This program is distributed in the hope that it will be useful,
Packit 5b56b6
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5b56b6
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 5b56b6
   GNU General Public License for more details.
Packit 5b56b6
Packit 5b56b6
   You should have received a copy of the GNU General Public License
Packit 5b56b6
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit 5b56b6
Packit 5b56b6
#ifndef READ_FILE_H
Packit 5b56b6
#define READ_FILE_H
Packit 5b56b6
Packit 5b56b6
/* Get size_t.  */
Packit 5b56b6
#include <stddef.h>
Packit 5b56b6
Packit 5b56b6
/* Get FILE.  */
Packit 5b56b6
#include <stdio.h>
Packit 5b56b6
Packit 5b56b6
extern char *fread_file (FILE * stream, size_t * length);
Packit 5b56b6
Packit 5b56b6
extern char *read_file (const char *filename, size_t * length);
Packit 5b56b6
Packit 5b56b6
extern char *read_binary_file (const char *filename, size_t * length);
Packit 5b56b6
Packit 5b56b6
#endif /* READ_FILE_H */