#include <common/nstring.h>
Go to the source code of this file.
Functions | |
void | copy_whole_file (string_ty *from, string_ty *to, int cmt) |
void | copy_whole_file (const nstring &from, const nstring &to, bool cmt) |
string_ty * | read_whole_file (string_ty *filename) |
nstring | read_whole_file (const nstring &filename) |
int | files_are_different (string_ty *f1, string_ty *f2) |
bool | files_are_different (const nstring &f1, const nstring &f2) |
void | file_from_string (string_ty *, string_ty *, int) |
void | cat_string_to_stdout (string_ty *) |
void cat_string_to_stdout | ( | string_ty * | ) |
The files_are_different function is used to compare two files. Works for both text and binary files.
f1 | The path of a file to be compared. | |
f2 | The path of a file to be compared. |
The files_are_different function is used to compare two files. Works for both text and binary files.
f1 | The path of a file to be compared. | |
f2 | The path of a file to be compared. |
The read_whole_file function is used to read a file into a string. The file is assumed to be a text file.
filename | pathname of file to be read |
The read_whole_file function is used to read a file into a string. The file is assumed to be a text file.
filename | pathname of file to be read |