summaryrefslogtreecommitdiff
path: root/src/bin/e_path.c
diff options
context:
space:
mode:
authorhandyande <handyande>2005-06-11 13:32:29 +0000
committerhandyande <handyande@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-06-11 13:32:29 +0000
commit4e125e3bff79d23fd9f5fccf4c818545cf6f13a5 (patch)
tree13318848d2b7adbbb4263a424168b4b6a291a753 /src/bin/e_path.c
parente629126d7bd1976bea636b4a6bf89094310ec65b (diff)
app_installed now in ecore_file
SVN revision: 15257
Diffstat (limited to 'src/bin/e_path.c')
-rw-r--r--src/bin/e_path.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/bin/e_path.c b/src/bin/e_path.c
index 33c44ef..74ff31c 100644
--- a/src/bin/e_path.c
+++ b/src/bin/e_path.c
@@ -18,39 +18,6 @@ e_path_new(void)
18 return ep; 18 return ep;
19} 19}
20 20
21E_Path *
22e_path_from_env(char *env)
23{
24 E_Path *ep;
25 char *env_path, *p, *last;
26
27 ep = e_path_new();
28 env_path = getenv(env);
29
30 if (!env_path)
31 return ep;
32
33 env_path = strdup(env_path);
34 last = env_path;
35 for (p = env_path; *p; p++)
36 {
37 if (*p == ':')
38 *p = '\0';
39
40 if (!*p)
41 {
42 e_path_default_path_append(ep, last);
43 last = p+1;
44 }
45
46 }
47 if (p > last)
48 e_path_default_path_append(ep, last);
49
50 free(env_path);
51 return ep;
52}
53
54void 21void
55e_path_default_path_append(E_Path *ep, const char *path) 22e_path_default_path_append(E_Path *ep, const char *path)
56{ 23{