OxL Reference

fn null

The null pointer.

Example:

oxl✓ checked in CI
use std.ffi { null }

fn main() io {
  let p = null<u8>()
  print("{p.isNull()}")
}
Output
true
@intrinsic("ffi.null") pub(api) fn null<T>() -> *var T

Since. 1.0.0-beta

Returns

*var T

Effects

none declared (pure unless the body says otherwise)

Defined in: std/ffi/ffi.oxl:204

See also