static int string_to_bool ( const char *  val  )  [static]

Convert a "yes"/"no" string to a boolean value.

Definition at line 41 of file config.c.

00042 {
00043         if (strcmp(val, "yes") == 0)
00044                 return (1);
00045         else if (strcmp(val, "no") == 0)
00046                 return (0);
00047         else
00048                 return (-1);
00049 }

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:07 2010 for herrie by  doxygen 1.6.3