|
TPCCLIB
|
Functions for file backup. More...
Go to the source code of this file.
Functions | |
| int | fileBackup (const char *filename, const char *backup_ext, char *status) |
Functions for file backup.
Definition in file backup.c.
| int fileBackup | ( | const char * | filename, |
| const char * | backup_ext, | ||
| char * | status ) |
Check if specified file exists; rename existing file to a backup file. If also backup file exists, then remove that.
| filename | Name of file which, if it exists, is renamed to a backup file. |
| backup_ext | Extension for backup file; NULL will set the default ".bak" extension. |
| status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed. |
Definition at line 17 of file backup.c.