O'Reilly logo

Extended STL, Volume 1: Collections and Iterators by Matthew Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Adapting the glob API

 

Compromise and accommodation do not end with the design of hardware.

 
 --Henry Petroski
 

Being lazy may look easy, but it’s actually quite hard to pull off.

 
 --Unattributed

Introduction

In this chapter we’re going to take a look at the UNIX glob API, the first of four file system enumeration APIs that will be covered in Part II. It provides users with the capability to conduct searches using the rich wildcard matching facilities provided by the UNIX shell(s). Although the glob() function is very feature rich and comparatively complex to use compared to the other file system enumeration APIs, it presents a reasonably simple interface for STL extension, which is why we’re covering it first.

Motivation

Imagine that you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required