![]() ![]() |
![]() |
File: [Pegasus] / pegasus / src / utils / mu / PwdCmd.cpp
(download)
Revision: 1.1.1.1 (vendor branch), Sun Jan 14 19:54:08 2001 UTC (23 years, 5 months ago) by mike Branch: pegasus CVS Tags: version_0_8, stable, opengroup Changes since 1.1: +0 -0 lines Pegasus import |
#include <iostream> #include "PwdCmd.h" #include "Files.h" int PwdCmd(const vector<string>& args) { if (args.size() != 1) { cerr << args[0] << ": extraneous arguments" << endl; return 1; } string path; if (!GetCwd(path)) { cerr << args[0] << ": failed to access working directory" << endl; return 1; } cout << path << endl; return 0; }
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |