diff options
author | chatty | 2000-11-28 14:19:34 +0000 |
---|---|---|
committer | chatty | 2000-11-28 14:19:34 +0000 |
commit | 09f57c8dffd9a8ba0983cce13381aef716f43801 (patch) | |
tree | 49c5faa7cd1b76eea36169b5ecce09411b2802c2 /utils/testdirpath.cc | |
parent | 2575756ec6f41bd05bf4505ccc0253fad0ed77c4 (diff) | |
download | ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.zip ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.gz ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.bz2 ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.xz |
*** empty log message ***
Diffstat (limited to 'utils/testdirpath.cc')
-rw-r--r-- | utils/testdirpath.cc | 19 |
1 files changed, 19 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#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"); + } +} |