TF++, Miscellaneous classes and modules in C++:
dirname.cc File Reference

interface to dirname(3) (implementation) More...

#include <tfxx/fs.h>
#include <cstring>
#include <libgen.h>
Include dependency graph for dirname.cc:

Go to the source code of this file.

Namespaces

 tfxx
 Namespace containing all code of library libtfxx.
 
 tfxx::fs
 Namespace for all file system utilities.
 

Macros

#define TF_DIRNAME_CC_VERSION   "TF_DIRNAME_CC V1.0"
 

Functions

std::string tfxx::fs::dirname (const std::string &path)
 return path with its last non-slash component removed More...
 

Detailed Description

interface to dirname(3) (implementation)


Author
Thomas Forbriger
Date
16/12/2012

interface to dirname(3) (implementation)

Copyright (c) 2012 by Thomas Forbriger (BFO Schiltach)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES

  • 16/12/2012 V1.0 Thomas Forbriger

Definition in file dirname.cc.