#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"); } }