Mercurial > trustbridge
view common/portpath.h @ 162:4a4b5e640d1a
Fix build for windows with -Wunused -Werror
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 10:08:56 +0000 |
parents | 306e4db11761 |
children | 92d7e0b40808 |
line wrap: on
line source
#ifndef PORTPATH_H #define PORTPATH_H /** * @file portpath.h * @brief Platform independent functions for file and path handling. * @details portpath contains functions to handle file and path names * in a platform independent way. The code unsing this functions * should be protable between GNU/Linux and Windows32 systems. */ /** * @brief portable version of dirname * @details return the directory component of the given path. * The argument path may be altered by the function. * @param[inout] path the pathname * @returns a pointer to the string containing the directory component */ char *port_dirname(char *path); /** * @brief portable version of dirname * @details return the directory component of the given path. * The argument path may be altered by the function. * @param[inout] path the pathname * @returns a pointer to the string containing the directory component */ char *port_dirname(char *path); /** * @brief portable version of realpath * @details return the expanded absolute pathname for the given path. * The buffer for the resolved path is allocated by this function and * should be freed by the caller. * @param[in] path the original pathname * @returns a pointer to the resolved path or NULL on error */ char *port_realpath(char *path); #endif