Parse a string value as a bool.
Valid values for true are: 'true', 'yes', 'on', 1 or any number different from 0 Valid values for false are: 'false', 'no', 'off', 0
place to store the result of the parsing
value to parse
0 or an error code.