Go to the source code of this file.
Function Documentation
The files_are_different function is used to compare two files. Works for both text and binary files.
- Parameters:
-
| f1 | The path of a file to be compared. |
| f2 | The path of a file to be compared. |
- Returns:
- int; non-zero (true) if the files are different in any way, zero (false) if the files are identical.
The files_are_different function is used to compare two files. Works for both text and binary files.
- Parameters:
-
| f1 | The path of a file to be compared. |
| f2 | The path of a file to be compared. |
- Returns:
- bool; true if the files are different in any way, false if the files are identical.
The read_whole_file function is used to read a file into a string. The file is assumed to be a text file.
- Parameters:
-
| filename | pathname of file to be read |
- Returns:
- Pointer to string in dynamic memory containing text of file. Any trailing white space will have been removed.
- Note:
- Assumes the user has already been set.
The read_whole_file function is used to read a file into a string. The file is assumed to be a text file.
- Parameters:
-
| filename | pathname of file to be read |
- Returns:
- Pointer to string in dynamic memory containing text of file. Any trailing white space will have been removed.
- Note:
- Assumes the user has already been set.