
Standard Header Files UM017105-0511
394
Zilog Developer Studio II – ZNEO™
User Manual
Diagnostics <assert.h>
The <assert.h> header declares two macros.
Macros
Character Handling <ctype.h>
The <ctype.h> header declares several macros and functions useful for testing and map-
ping characters. In all cases, the argument is an
int, the value of which is represented as
an
unsigned char or equals the value of the EOF macro. If the argument has any other
value, the behavior is undefined.
Macros
The above character-handling macros are nonstandard macros.
Functions
The functions in this section return nonzero (true) if, and only if, the value of the argument
c conforms to that in the description of the function. The term printing character refers to
a member of a set of characters, each of which occupies one printing position on a display
device. The term control character refers to a member of a set of characters that are not
printing characters.
NDEBUG The <assert.h> header defines the assert() macro. It refers to the
NDEBUG macro that is not defined in the header. If NDEBUG is
defined as a macro name before the inclusion of this header, the
assert() macro is defined simply as:
#define assert(ignore)((void) 0)
assert(expression); Tests the expression and, if false, prints the diagnostics including
the expression, file name, and line number. Also calls exit with non-
zero exit code if the expression is false.
TRUE Expands to a constant 1.
FALSE Expands to a constant 0.
Kommentare zu diesen Handbüchern