The usedir.c sample program demonstrates how Client-Library applications perform a directory search. All of the code fragments in this chapter are taken from usedir.c.