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

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

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(C) -based system(S) calls. The path library implementation of wildcard expansion is fast, reliable, and uses the Korn shell pattern matching rules.
Next topic: Terminology

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005