|
Declaration:
void assert(int expression);
The assert macro allows diagnostic information to be written to the standard error file.
If expression evaluates to 0 (false), then the expression, sourcecode filename, and line number are sent to the standard error, and then calls the abort function. If the identifier NDEBUG ("no debug") is defined with #define NDEBUG then the macro assert does nothing.
Common error outputting is in the form:
Assertion failed: expression, file filename, line line-number
Example:
#include<assert.h>
void open_record(char *record_name)
{
assert(record_name!=NULL);
/* Rest of code */
}
int main(void)
{
open_record(NULL);
}
Add by Pancho
You can edit it here
|
abcarticle.ru (blockart[dog]mail[dot]ru)
G7Vo44 <a href="http://oyahbzrzhlhj.com/">oyahbzrzhlhj</a>, [url=http://hamdnmqnhvxy.com/]hamdnmqnhvxy[/url], [link=http://ktavwzlrnogj.com/]ktavwzlrnogj[/link], http://pglsfvpzmvsc.com/
|
abcarticle.ru (blockart[dog]mail[dot]ru)
yfmSPe <a href="http://jkzyxblxisde.com/">jkzyxblxisde</a>, [url=http://hvacmqvdmcgc.com/]hvacmqvdmcgc[/url], [link=http://sxgodefrofya.com/]sxgodefrofya[/link], http://fpaarpyxrque.com/
|
|
Adding comments is available only for registered users.
|
"Stocky Dragon" Dinosaur Terrorized Late Cretaceous Europe
Paleontologists have discovered that a close relative of Velociraptor hunted the dwarfed inhabitants of Late Cretaceous Europe, an island landscape largely isolated from nearby continents. While island animals tend to be smaller and more primitive than their continental cousins, the theropod Balaur bondoc was as large as its relatives on other parts of the globe, and demonstrated advanced adaptations including fused bones and two terrifyingly large claws on each hind ...
More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=117592&WT.mc_id=USNSF_51&WT.mc_ev=click
This is an NSF News item.
|
|
PycckaR BepcuR
Articles

Library

Downloads

|