Reformat a name for a second copy.
Source position: icon.pas line 239
function BumpRevision( |
NewName: PChar; |
const OldName: PChar |
):PChar; |
NewName |
|
The new buffer that will receive the name (it must be at least 31 characters long). |
OldName |
|
The original name |
Pointer to NewName
BumpRevision takes a name and turns it into a "copy_of_name". It knows how to deal with copies of copies. The routine will truncate the new name to the maximum dos name size (currently 30 characters).
Examples:
OldName | NewName |
---|---|
'foo' | 'copy_of_foo' |
'copy_of_foo' | 'copy_2_of_foo' |
'copy foo' | 'copy_1_of_foo' |
'012345678901234567890123456789' | 'copy_of_0123456789012345678901' |