a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Static lib:
 amiga.lib
  ACrypt
  AddTOF
  ArgArrayDone
  ArgArrayInit
  ArgInt
  ArgString
  BeginIO
  CallHook
  CallHookA
  CheckRexxMsg
  CoerceMethod
  CoerceMethodA
  CreateExtIO
  CreatePort
  CreateStdIO
  CreateTask
  CxCustom
  CxDebug
  CxFilter
  CxSender
  CxSignal
  CxTranslate
  DeleteExtIO
  DeletePort
  DeleteStdIO
  DeleteTask
  DoMethod
  DoMethodA
  DoSuperMethod
  DoSuperMethodA
  FastRand
  FreeIEvents
  GetRexxVar
  HookEntry
  HotKey
  InvertString
  LibAllocPooled
  LibCreatePool
  LibDeletePool
  LibFreePooled
  NewList
  RangeRand
  RemTOF
  SetRexxVar
  SetSuperAttrs
  TimeDelay
  afp
  arnd
  dbf
  fpa
  printf
  sprintf
  stdio
Include
GuruMeditation
Docs » Autodocs » amiga.lib » ArgInt

NAME

	ArgInt -- return an integer value from a ToolTypes array. (V36)

SYNOPSIS

	value = ArgInt(tt,entry,defaultval)
LONG ArgInt(UBYTE **,STRPTR,LONG);

FUNCTION

	This function looks in the ToolTypes array 'tt' returned
by ArgArrayInit() for 'entry' and returns the value associated
with it. 'tt' is in standard ToolTypes format such as:
ENTRY=Value
The Value string is passed to atoi() and the result is returned by
this function.
If 'entry' is not found, the integer 'defaultval' is returned.

INPUTS

	tt - a ToolTypes array as returned by ArgArrayInit()
entry - the entry in the ToolTypes array to search for
defaultval - the value to return in case 'entry' is not found within
the ToolTypes array

RESULT

	value - the value associated with 'entry', or defaultval if 'entry'
is not in the ToolTypes array

NOTES

	This function requires that dos.library V36 or higher be opened.

SEE ALSO

ArgArrayInit()

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:

Abyss

CSL
AYS
DC
FC

Comments:

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