(file) Return to CompareCmd.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / utils / mu

File: [Pegasus] / pegasus / src / utils / mu / CompareCmd.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 "CompareCmd.h"

int CompareCmd(const vector<string>& args)
{
    if (args.size() != 3)
    {
	cerr << args[0] << ": wrong number of arguments" << endl;
	return 1;
    }

    size_t offset = 0;

    if (!CompareFiles(args[1], args[2], offset))
    {
	cerr << args[0] << ": compare failed" << endl;
	return 1;
    }

    return 0;
}

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2