| N F O _ S C A N L I S T ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - NFO_#?
----------------------------------------------------------------------------
NAME
nfo_scanlist() - Allows to scan a chain of lists.
SYNOPSIS
res = ULONG nfo_scanlist(lists, userdata, usercode);
ULONG nfo_scanlist(ULONG *, void *,
ULONG (*)(struct nfo_sct_cb *));
FUNCTION
This function allows to scan a chain of lists in one
go.
INPUTS
lists - Array of lists(their pointers as ints).
0 terminates the array.
userdata - Userdata, can be NULL.
usercode - Function that will be called each time
new entry is encountered.
RETURNS
It is actually up to programmer what this func. will
return. Please note that to force this function to
quit, callback must return something that is above 0!
BASES
SysBase
NOTES
This function is able to iterate 'struct List' and
'struct MinList' only!
Please note, system lists should be processed in
forbidden state!
This func. was written in such a way that 'Remove()'
can safely be called on iterated entries.
SEE ALSO
nfo_scanturbo()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |