TSP (libtsp/FL) - FLbackup

## FLbackup

#### Routine

void FLbackup (const char Fname[])

#### Purpose

Rename an existing file

#### Description

This subroutine backs up a file. If a file with the given name exists, say xxx, that file is renamed to xxx~. Any previous file with the name xxx~ is removed. For MS-DOS, the ~ character is the last character in the file extension. In MS-DOS xxx is renamed to xxx.~.

Only regular files are backed up. If a backup file is created, a warning message indicating the new name is issued. One use of this routine is to a copy of an existing file before opening a new file.

This routine will terminate execution if the file cannot be backed up.

#### Parameters

-> const char Fname[]
  File name

#### Author / revision

P. Kabal Copyright (C) 1997 / Revision 1.27 1997/10/14

Main Index libtsp