DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
A UNIX Path Name Library for C++ - Path(3C++)

A UNIX Path Name Library for C++ - Path(3C++)

Almost every non-trivial C++ program manipulates UNIX® System path names. Many of the operations performed on paths are common to a large number of programs -- for example, changing the extension of a path from .c to .o, making an absolute path out of a relative path, testing whether the file corresponding to a given path exists, searching for a certain file in a search path, and so on. In this tutorial, we describe a C++ library which provides these commonly performed operations. The library also provides the additional operation of wildcard expansion, which was heretofore available only in the shell, and accessible to C and C++ programmers only by doing slow, unreliable, sh(1) -based system(3S) calls. The path library implementation of wildcard expansion is fast, reliable, and uses the Korn shell pattern matching rules.
Next topic: Terminology

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004