a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 icon.library
  AddFreeList
  BumpRevision
  ChangeToSelectedIconColor
  DeleteDiskObject
  DrawIconStateA
  DupDiskObjectA
  FindToolType
  FreeDiskObject
  FreeFreeList
  GetDefDiskObject
  GetDiskObject
  GetDiskObjectNew
  GetIconRectangleA
  GetIconTagList
  IconControlA
  LayoutIconA
  MatchToolValue
  NewDiskObject
  PutDefDiskObject
  PutDiskObject
  PutIconTagList
Include
GuruMeditation
Docs » Autodocs » icon.library » BumpRevision

NAME

	BumpRevision - reformat a name for a second copy.

SYNOPSIS

	result = BumpRevision(newbuf, oldname)
D0 A0 A1
STRPTR BumpRevision(STRPTR, STRPTR);

FUNCTION

	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).

INPUTS

	newbuf - the new buffer that will receive the name
(it must be at least 31 characters long).
oldname - the original name

RESULT

	result - a pointer to newbuf

EXAMPLE

	oldname                          newbuf
------- ------
"foo" "copy_of_foo"
"copy_of_foo" "copy_2_of_foo"
"copy_2_of_foo" "copy_3_of_foo"
"copy_199_of_foo" "copy_200_of_foo"
"copy foo" "copy_of_copy foo"
"copy_0_of_foo" "copy_1_of_foo"
"012345678901234567890123456789" "copy_of_0123456789012345678901"

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Future Crew

PDX
FC
RZR
PHA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se