FIND(3ast) FIND(3ast)

# [NAME](#NAME)

find - fastfind algorithm interface

# [SYNOPSIS](#SYNOPSIS)

```
#include <find.h>
void* findopen(const char* pattern);
char* findnext(void* handle);
void findclose(void* handle);
```

# [DESCRIPTION](#DESCRIPTION)

These routines access the data generated by the *fastfind* algorithm. The data itself is generated by a standalone program that is run daily via *cron* or *at*.

findopen returns a handle to a *fastfind* stream for the *ksh* file pattern *pattern*. findnext returns the next pathname that matches the pattern specified by *handle*. findnext returns 0 when no more pathnames match the pattern. Finally, findclose closes the *fastfind* stream for *handle*.

# [BUGS](#BUGS)

These routines are only as good as the *fastfind* information which is in the system administration domain.

# [SEE ALSO](#SEE_ALSO)

[tw(1)](/man/os/ksh/tw.1), [find(1)](/man/os/ksh/find.1), [strmatch(3)](/man/os/ksh/strmatch.3)  
James A. Woods, *Fast Find Algorithm*, Usenix ;login:, February/March, 1983, p. 8

---

Document: find(3ast) from ksh 1.0.10-r36 (Chainguard OS)
Source: https://github.com/ksh93/ksh
