20 lines
510 B
C
20 lines
510 B
C
#ifndef RSE_FILE_UTILS_H
|
|
#define RSE_FILE_UTILS_H
|
|
|
|
#include <stddef.h>
|
|
|
|
/**
|
|
* @brief Reads file and puts its content into char buffer. If NULL is provided as buffer, than just bytes_count
|
|
* is set
|
|
*
|
|
* @param file_path Path to file
|
|
* @param bytes_count Returned bytes count
|
|
* @param buffer Returned filled buffer
|
|
*/
|
|
void rse_read_file(const char* file_path, long* bytes_count, char* buffer);
|
|
|
|
void rse_write_to_file(const char* file_name, long bytes_count, char* buffer);
|
|
|
|
#endif /* RSE_FILE_UTILS_H */
|
|
|