Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

assert(3) [ultrix man page]

assert(3)						     Library Functions Manual							 assert(3)

Name
       assert - program verification

Syntax
       #include <assert.h>

       assert(expression)

Description
       The macro indicates expression is expected to be true at this point in the program.  It causes an with a diagnostic comment on the standard
       error when expression is false (0).  Compiling with the option -DNDEBUG effectively deletes from the program.

Diagnostics
       `Assertion failed: a, file f n'.  The a is the assertion that failed; f is the source file and n the source line number of the statement.

																	 assert(3)

Check Out this Related Man Page

assert.h(3HEAD) 						      Headers							   assert.h(3HEAD)

NAME
assert.h, assert - verify program assertion SYNOPSIS
#include <assert.h> DESCRIPTION
The <assert.h> header defines the assert() macro. It refers to the macro NDEBUG which 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) Otherwise, the macro behaves as described in assert(3C). The assert() macro is redefined according to the current state of NDEBUG each time <assert.h> is included. The assert() macro is implemented as a macro, not as a function. If the macro definition is suppressed in order to access an actual func- tion, the behavior is undefined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
assert(3C), attributes(5), standards(5) SunOS 5.11 10 Sep 2004 assert.h(3HEAD)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SFTP error Assertion failed

I get this error when I try to FTP from an HP Alpha Server to a UNIX box. FATAL: BUILD13$:SSHFC_TRANSFER.C;1:1835 SshFCTransfer (function name unavailable) Assertion failed: tdata ->current_dest_file->attributes->flags & 0x00000004 the sftp /put fails just before it does the actual transfer.... (2 Replies)
Discussion started by: NoelSacay
2 Replies

2. Programming

Fork thread, Assertion failed. X11.

Hi all. I wrote a program with the Motif Widget Toolkit. It has a button and a scrollbar. When the user hits the button the callback creates a new fork() thread. The new thread sleeps for a while and then changes the position of the scrollbar. It does this in an endless loop. I need the... (2 Replies)
Discussion started by: mghis
2 Replies

3. Programming

Can't debug: assert error with gdb (no problem without)

I'm sorry if the title is really criptic, but I don't know how to phrase my problem. I know I can't really ask for a solution, and I normally wouldn't but this is really escaping my abilities. Antefacts. I developed a program using the zeromq messaging library. I got to a point where the... (11 Replies)
Discussion started by: erupter
11 Replies