1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Files
gnulib/modules/read-file
Giuseppe Scrivano 3e53db21df read-file: Avoid memory reallocations with regular files.
* lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
(fread_file): With regular files, use the remaining length as the
initial buffer size.  Check against overflow.
* modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
sys_stat.
2010-08-28 16:14:23 +02:00

29 lines
314 B
Plaintext

Description:
read_file() function: read the contents of a file into a string
Files:
lib/read-file.h
lib/read-file.c
m4/read-file.m4
Depends-on:
ftello
malloc-posix
realloc-posix
stdint
sys_stat
configure.ac:
gl_FUNC_READ_FILE
Makefile.am:
Include:
"read-file.h"
License:
LGPLv2+
Maintainer:
Simon Josefsson