BOOLTOA C-3

NAME

booltoa - convert BOOLEAN value to ASCII

SYNOPSIS

#include <cbase/dtypes.h>

char *booltoa (b)

BOOLEAN b;

DESCRIPTION

Booltoa converts the BOOLEAN value b to its ASCII string representation with the format returned by getfbool(C-3). If the BOOLEAN value is TRUE (non-zero), the first specifier in the format is returned (yes in the default formatting set). Otherwise, the second specifier in the format is returned (no in the default formatting set).

SEE ALSO

getfbool(C-3), fbooltoa(C-3), atobool(C-3)

C/Base Reference Manual Chapter 13, "Formatting Data Values"

NOTES

The return value points to static data whose contents are overwritten with every call.