lrc_bool

Type Conversion From String

Converts a string into a Boolean variant.

VARIANT_BOOL lrc_bool( const char* str );
VARIANT_BOOL* lrc_bool_by_ref( const char* str );
str A character string containing "true" or "false".

The lrc_bool function returns a Boolean value when a character string containing "true" or "false" is input.

The lrc_bool_by_ref function returns a pointer to a Boolean value when a character string containing "true" or "false" is input.

Return Values

lrc Return Values

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

This example converts the string "true" into a Boolean variant.

VARIANT_BOOL var = lrc_bool("true");