14 char *path_search(char *name
, char *mode
, char *path
)
23 if (!path
|| !*path
|| *name
== '/')
24 return (buf
= strdup(name
));
26 buf
= malloc(strlen(path
) + strlen(name
) + 2);
28 for (p
= path
; *p
; p
+= l
)
36 strcpy(buf
+l
+1, name
);
37 if ((f
= fopen(buf
, mode
)))