blob: c709560b2b2fa0a6df174bb70d5436379f2380ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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");
}
}
|