testing against C_NULL is probably the easiest way:

p == C_NULL


On Sat, Jun 14, 2014 at 10:39 PM, J Luis <[email protected]> wrote:

> How do I test if a pointer is NULL?
> (did search the docs but couldn't find and answer)
>
> and BTW, I can't get this one either
>
> docs:
>
> pointer(*type*, *int*)
>
> Convert an integer to a pointer of the specified element type.
>
> julia> pointer(Uint8,0)
> ERROR: no method pointer(Type{Uint8}, Int64)
>
> julia> pointer(Uint8,uint8(0))
> ERROR: no method pointer(Type{Uint8}, Uint8)
>
> Thanks
>

Reply via email to