| 4 |
|
/* |
| 5 |
|
* getpath.c - function to search for file in a list of directories |
| 6 |
|
* |
| 7 |
< |
* External symbols declared in rtio.h |
| 7 |
> |
* External symbols declared in paths.h |
| 8 |
|
*/ |
| 9 |
|
|
| 10 |
|
#include "copyright.h" |
| 11 |
|
|
| 12 |
|
#include <ctype.h> |
| 13 |
|
|
| 14 |
– |
#include "rtio.h" |
| 14 |
|
#include "paths.h" |
| 15 |
|
|
| 16 |
|
|
| 100 |
|
char *cp; |
| 101 |
|
char fname[PATH_MAX]; |
| 102 |
|
|
| 103 |
< |
if (!fname | (fname == pname)) |
| 104 |
< |
return(fname); |
| 103 |
> |
if (!ffname | (ffname == fname)) |
| 104 |
> |
return(ffname); |
| 105 |
|
|
| 106 |
|
/* if we have a dot in the string, we assume there is a file name |
| 107 |
|
extension present */ |