![]() ![]() |
![]() |
File: [Pegasus] / pegasus / src / utils / mu / CopyCmd.cpp
(download)
Revision: 1.1.1.1 (vendor branch), Sun Jan 14 19:54:05 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 "Files.h" #include "CopyCmd.h" int CopyCmd(const vector<string>& args) { if (args.size() < 3) { cerr << args[0] << ": wrong number of arguments" << endl; return 1; } vector<string> from; for (size_t i = 1; i < args.size() - 1; i++) from.push_back(args[i]); if (!CopyFiles(from, args[args.size()-1])) { cerr << args[0] << ": failed to copy file" << endl; return 1; } return 0; }
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |