[fpc-pascal] NULL pointer to array of integer
Marc Santhoff
M.Santhoff at t-online.de
Wed Sep 13 17:57:15 CEST 2006
Am Mittwoch, den 13.09.2006, 14:00 +0200 schrieb Eduardo:
> At 10:04 13/09/2006, you wrote:
> >Hi,
> >
> >while fiddling with some C'isms I've stumbled over a function in a
> >library expecting an array of integers *or* a NULL pointer.
> >
> >How can I hand over any NIL or 0 or something equal to NULL in C that is
> >accepted by fpc?
> >
> >Using NIL or 0 does not work certainly...
>
> I remember that on c a null pointer has value 0, but in ansi pascal
> it has value 23. Don't know if it's still true or if fpc uses the c
> value, or both.
?
Okay, I'll try that, but I would at least expect it to have a value of
42. ;)
Thank you anyways,
Marc
More information about the fpc-pascal
mailing list