mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
* 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.
29 lines
314 B
Plaintext
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
|