labwc/include/common/grab-file.h

21 lines
384 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
2020-08-06 15:01:08 +01:00
#include "common/buf.h"
2020-08-06 15:01:08 +01:00
/**
* grab_file - read file into memory buffer
* @filename: file to read
* Free returned buffer with buf_reset().
2020-08-06 15:01:08 +01:00
*/
struct buf grab_file(const char *filename);
2020-08-06 15:01:08 +01:00
#endif /* LABWC_GRAB_FILE_H */