<b>boolean_to_string()</b>




Document: The safe-c User Guide

next clear_screen()
up Functions
gif string_to_boolean()

boolean_to_string()

boolean_to_string() accepts exactly two arguments. The first must be a variable of string_type. The second must be of boolean_type, and may be either a constant or a variable. However, in practise it will normally be a variable (since, otherwise, a constant of string_type could simply be used directly, instead of invoking boolean_to_string()). In any case, if this second argument is a variable, it will not be altered by boolean_to_string().

boolean_to_string() takes the value of boolean_type given by the second argument, and converts it into a corresponding string_type value - i.e. either the string "TRUE" or the string "FALSE". It then stores this string in the variable given as the first argument.

boolean_to_string() does not produce any return value.




Document: The safe-c User Guide

next clear_screen()
up Functions
gif string_to_boolean()



McMullin@eeng.dcu.ie
Fri Jan 12 12:30:02 GMT 1996