Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

BumpRevision

Reformat a name for a second copy.

Declaration

Source position: icon.pas line 222

function BumpRevision(

  NewName: PChar;

  const OldName: PChar

):PChar;

Arguments

NewName

  

The new buffer that will receive the name (it must be at least 31 characters long).

OldName

  

The original name

Function result

Pointer to NewName

Description

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'

Documentation generated on: 2021-07-30