home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_03
/
1n03008a
< prev
next >
Wrap
Text File
|
1990-06-14
|
336b
|
27 lines
Listing 1
{*
* Terminate the program with an error message if
* pointer p is NIL.
*}
procedure not_NIL(p : pointer);
begin
if p = NIL then
runerror(204);
end;
var
p : ^char;
begin
p := NIL;
{$ifdef DEBUG}
not_NIL(p);
{$endif}
.
.
p^ := 'a';
end.