Docs » Autodocs » amiga.lib » ArgInt
ArgInt -- return an integer value from a ToolTypes array. (V36)
value = ArgInt(tt,entry,defaultval) LONG ArgInt(UBYTE **,STRPTR,LONG);
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.
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
value - the value associated with 'entry', or defaultval if 'entry' is not in the ToolTypes array
This function requires that dos.library V36 or higher be opened.
ArgArrayInit()
|