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 » FindToolType

NAME

	FindToolType - find the value of a ToolType variable.

SYNOPSIS

	value = FindToolType(toolTypeArray, typeName)
D0 A0 A1
STRPTR FindToolType(STRPTR *, STRPTR);

FUNCTION

	This function searches a tool type array for a given entry,
and returns a pointer to that entry. This is useful for
finding standard tool type variables. The returned
value is not a new copy of the string but is only
a pointer to the part of the string after typeName.

INPUTS

	toolTypeArray -- an array of strings (STRPTR *).
typeName -- the name of the tooltype entry (STRPTR).

RESULT

	value -- a pointer to a string that is the value bound to typeName,
or NULL if typeName is not in the toolTypeArray.

EXAMPLE

	Assume the tool type array has two strings in it:
"FILETYPE=text"
"TEMPDIR=:t"
FindToolType( toolTypeArray, "FILETYPE" ) returns "text"
FindToolType( toolTypeArray, "filetype" ) returns "text"
FindToolType( toolTypeArray, "TEMPDIR" ) returns ":t"
FindToolType( toolTypeArray, "MAXSIZE" ) returns NULL
FindToolType( toolTypeArray, "text" ) returns NULL
FindToolType( toolTypeArray, ":t" ) returns NULL

NOTES

	icon.library V44 tolerates tool type strings with additional
blanks around the '=' character, such as in "FILETYPE = text".
Older icon.library versions did not support this.

SEE ALSO

icon.library/MatchToolValue()

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:

The Silents

KEF
SNT
RBS
TSL

Comments:

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