Logo Search packages:      
Sourcecode: maildir-utils version File versions  Download package

mu-util.h

/*
** Copyright (C) 2008 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** 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 3 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
**
*/

#ifndef __MU_UTIL_H__
#define __MU_UTIL_H__

/** 
 * get the expanded path; currently only a starting '~/' will be
 * replaced by the users home directory, ie. for a user 'bob' this could mean
 * something like "~/my/path/to/something" --> "/home/bob/my/path/to/something"
 *
 * @param path path to expand
 * 
 * @return the expanded path as a newly allocated string, or NULL in
 * case of error
 */
char*       mu_util_homedir_expand (const char* path);


#endif /*__MU_UTIL_H__*/

Generated by  Doxygen 1.6.0   Back to index