Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

FindName

Find a node in a system list by name

Declaration

Source position: exec.pas line 1895

function FindName(

  list: PList;

  name: PChar

):PNode;

Arguments

list

  

A list or a list node to start the search (if node, this one is skipped)

name

  

Node name to find in the list

Function result

A pointer to the node with the same name else nil to indicate that the string was not found.

Description

Search a system list for a node with the given name. To find multiple occurrences of a string, this function may be called with a different node starting point.

No arbitration is done for access to the list! If multiple tasks access the same list, an arbitration mechanism such as SignalSemaphores must be used.


Documentation generated on: 2021-07-30