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