1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
8 |
|
* getpath.c - function to search for file in a list of directories |
9 |
|
*/ |
10 |
|
|
11 |
+ |
#include "paths.h" |
12 |
+ |
|
13 |
|
#define NULL 0 |
14 |
|
|
15 |
|
#ifndef NIX |
16 |
|
#include <pwd.h> |
17 |
+ |
extern struct passwd *getpwnam(); |
18 |
|
#endif |
19 |
|
|
20 |
< |
#ifndef DIRSEP |
18 |
< |
#define DIRSEP '/' |
19 |
< |
#endif |
20 |
< |
#ifndef PATHSEP |
21 |
< |
#define PATHSEP ':' |
22 |
< |
#endif |
23 |
< |
|
24 |
< |
extern char *strcpy(), *strcat(), *getenv(); |
25 |
< |
extern struct passwd *getpwnam(); |
20 |
> |
extern char *strcpy(), *strcat(); |
21 |
|
|
22 |
|
|
23 |
|
char * |