aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-27 00:47:03 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-27 00:47:03 +1000
commit0ef22a5577b1166b0ec8ff2c0cabfd133a5341f6 (patch)
treeefb21920de4bb86750dfaeb369f668ca2443f13d /env.h
parent6a3e73f87c6862f18dc24f6974caed4331416de4 (diff)
Add support for zero element arrays
darcs-hash:20050926144703-ac50b-3ed14d14b02908862d69aec08aab35b6d0188bba.gz
Diffstat (limited to 'env.h')
-rw-r--r--env.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/env.h b/env.h
index 36416281..69dc94bf 100644
--- a/env.h
+++ b/env.h
@@ -69,6 +69,12 @@ void env_set( const wchar_t *key,
wchar_t *env_get( const wchar_t *key );
/**
+ Returns 1 if the specified key exists. This can't be reliable done
+ using env_get, since env_get returns null for 0-element arrays
+*/
+int env_exist( const wchar_t *key );
+
+/**
Remove environemnt variable
\param key The name of the variable to remove