Logo Search packages:      
Sourcecode: xd version File versions

getcwd.cc

#include "alternatives.ih"

void Alternatives::getCwd(auto_ptr<char> *dest)
{
    dest->reset(new char[PATH_MAX]);

    if (not realpath(".", dest->get()))
        msg() << "Can't determine the current working dir." << fatal;
}

Generated by  Doxygen 1.6.0   Back to index