mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-28 10:13:43 +00:00
This commit was manufactured by cvs2svn to create tag 'v0_9_0'.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/v0_9_0@2684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
14
config.c
14
config.c
@@ -128,6 +128,20 @@ int ast_true(char *s)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ast_false(char *s)
|
||||
{
|
||||
if (!s)
|
||||
return 0;
|
||||
/* Determine if this is a false value */
|
||||
if (!strcasecmp(s, "no") ||
|
||||
!strcasecmp(s, "false") ||
|
||||
!strcasecmp(s, "n") ||
|
||||
!strcasecmp(s, "f") ||
|
||||
!strcasecmp(s, "0"))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct ast_variable *ast_variable_browse(struct ast_config *config, char *category)
|
||||
{
|
||||
struct ast_category *cat;
|
||||
|
Reference in New Issue
Block a user