DOKK / manpages / debian 11 / pvm-dev / pvm_lookup.3pvm.en
LOOKUP(3PVM) PVM Version 3.4 LOOKUP(3PVM)

pvm_lookup - retrieve data from pvmd database
[In Version 3.4: Relaced by pvm_getinfo]

C	int cc = pvm_lookup( char *name, int index, int *data )

Fortran Not available

The class name, a null-terminated string.
The class index, >= 0 or -1 for first available.
Returns the data stored in the <name, index> entry.

See pvm_insert(3PVM) for a description of this database.

pvm_lookup retrieves data stored in the location given by <name, index>. If index is -1, the data stored at the first existing index in the named class is returned.

If successful, pvm_lookup returns the index at which the data was stored (>= 0), otherwise it returns a negative error code:

giving an invalid argument value.
the requested <name, index> pair does not exist.

pvm_delete(3PVM), pvm_insert(3PVM)

27 June, 1994