From 09f57c8dffd9a8ba0983cce13381aef716f43801 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 28 Nov 2000 14:19:34 +0000 Subject: *** empty log message *** --- utils/testdirpath.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 utils/testdirpath.cc (limited to 'utils/testdirpath.cc') diff --git a/utils/testdirpath.cc b/utils/testdirpath.cc new file mode 100644 index 0000000..c709560 --- /dev/null +++ b/utils/testdirpath.cc @@ -0,0 +1,19 @@ +#include +#include +#include "DirPath.h" + +main () +{ + char line [256]; + const char *s; + const char *found; + CcuDirPath p; + const char* path = getenv ("PATH"); + p.AppendEnvPath (path); + + + while (s = gets (line)) { + found = p.FindFile (s); + printf ("%s %s\n", found ? "found" : s, found ? found : "not found"); + } +} -- cgit v1.1