File: realpath.cc

package info (click to toggle)
stealth 3.00.00-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,380 kB
  • ctags: 371
  • sloc: cpp: 2,730; makefile: 161; sh: 98
file content (9 lines) | stat: -rw-r--r-- 161 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#include "util.ih"

string Util::realPath(string const &path)
{
    char *cp = ::realpath(path.c_str(), 0);
    string ret = cp;
    free(cp);
    return ret;
}