---
name: "globus_hashtable_iterators"
section: "3"
platform: "linux"
package: "libglobus-common-doc"
version: "18.14-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_hashtable_iterators"
---

# globus\_hashtable\_iterators(3)

Iterators - Iterators.

## NAME

globus\_hashtable\_iterators - Iterators

 \- Iterators.

## SYNOPSIS

### Functions

void \* **globus\_hashtable\_first** (globus\_hashtable\_t \*table)\
 Initialize iterator to first hash table entry.  void \* **globus\_hashtable\_next** (globus\_hashtable\_t \*table)\
 Increment hash table iterator.  void \* **globus\_hashtable\_last** (globus\_hashtable\_t \*table)\
 Initialize iterator to last hash table entry.  void \* **globus\_hashtable\_prev** (globus\_hashtable\_t \*table)\
 Decrement hash table iterator.

## Detailed Description

Iterators.

The iterator is initially NULL until one of **globus\_hashtable\_first()** or **globus\_hashtable\_last()** has been called. All other calls have no effect on iterator except for **globus\_hashtable\_remove()**. If the iterator points at the entry being removed, the iterator is moved to the next entry.

Once an 'end' has been reached with **globus\_hashtable\_next()** or **globus\_hashtable\_prev()**, the iterator must again be reset with **globus\_hashtable\_first()** or **globus\_hashtable\_last()** before being used.

## Function Documentation

### void \* globus\_hashtable\_first (globus\_hashtable\_t \* table)

Initialize iterator to first hash table entry. Set iterator to first entry and return datum, NULL if empty

### void \* globus\_hashtable\_last (globus\_hashtable\_t \* table)

Initialize iterator to last hash table entry. Set iterator to last entry and return datum, NULL if empty

### void \* globus\_hashtable\_next (globus\_hashtable\_t \* table)

Increment hash table iterator. Set iterator to next entry and return datum, NULL if at end

### void \* globus\_hashtable\_prev (globus\_hashtable\_t \* table)

Decrement hash table iterator. Set iterator to the previous entry and return datum, NULL if at end

## Author

Generated automatically by Doxygen for globus\_common from the source code.
