labwc/include/common/grab-file.h

19 lines
366 B
C
Raw Permalink Normal View History

2021-11-13 21:56:53 +00:00
/* SPDX-License-Identifier: GPL-2.0-only */
2020-08-06 15:01:08 +01:00
/*
* Read file into memory
*
* Copyright Johan Malm 2020
*/
#ifndef __LABWC_GRAB_FILE_H
#define __LABWC_GRAB_FILE_H
/**
* grab_file - read file into memory buffer
* @filename: file to read
* Returns pointer to buffer. Free with free().
*/
char *grab_file(const char *filename);
#endif /* __LABWC_GRAB_FILE_H */