aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-02 07:57:06 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-02 07:57:06 +0000
commitf7c6812ba8bdfb065a68a604933ef714ad121da4 (patch)
tree6b1ea6f3614d0cec186ab568c2cc9db50bdd10e9 /include/asterisk/config.h
parente45225faef9746b72b093b8a2c404137a1047213 (diff)
Add function ast_false, like ast_true
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2289 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/config.h')
-rwxr-xr-xinclude/asterisk/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index ff8366042..e98df700f 100755
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -87,6 +87,14 @@ char *ast_variable_retrieve(struct ast_config *config, char *category, char *val
*/
int ast_true(char *val);
+//! Make sure something is false
+/*!
+ * Determine falseness of a boolean value.
+ * This function checks to see whether a string passed to it is an indication of a negatirve value. It checks to see if the string is "no", "false", "n", "f", and "0".
+ * Returns 0 if the value of s is a NULL pointer, 0 on "truth", and -1 on falsehood.
+ */
+int ast_false(char *val);
+
//! Check for category duplicates
/*!
* \param config which config to use