home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_07_08
/
v7n8072a.txt
< prev
next >
Wrap
Text File
|
1989-10-02
|
494b
|
28 lines
*****Listing 3*****
void someproc(p)
something * p;
{
#if DEBUG
if(!p)
{
if(report_null_pointer("someproc: p"))
return;
}
#endif
}
and use a target procedure which consists of
short report_null_pointer(where)
char * where;
{
fprintf(stderr,"NULL POINTER: %s\n",where);
return stop(where);
}
**********