RSP_boolConvert

Name

RSP_boolConvert -- Converts boolean value to T/F.

Synopsis

int RSP_boolConvert(char *data);

Description

This function converts the given string data to an integer (which represents a Boolean).

Values resolving to TRUE:

Values resolving to FALSE

Returns

Returns a 1 if the given string is equivalent to true, and 0 if equivalent to false (or -1 if an error occurred).

Error Conditions

If an error occurs, -1 will be returned and rsp_error will be set to the following error code: