Next: , Previous: , Up: syslib   [Index]


12.21 Low level pointer operations

In the following definitions the ptr arguments must be pointer objects. The following bindings are exported by the library (vicare system $pointers).

Comparison

Unsafe Operation: $pointer= ptr1 ptr2

Return #t if ptr1 and ptr2 are equal, else return #f.

Function: $pointer!=? ptr1 ptr2

The arguments must be pointers. Return #t if the arguments are different; otherwise return #f.

Unsafe Operation: $pointer< ptr1 ptr2
Unsafe Operation: $pointer> ptr1 ptr2
Unsafe Operation: $pointer<= ptr1 ptr2
Unsafe Operation: $pointer>= ptr1 ptr2

Dyadic lexicographic comparison functions for pointers. Return #t if ptr1 and ptr2 compare as the name implies; otherwise return #f.

Function: $pointer-max ptr1 ptr2
Function: $pointer-min ptr1 ptr2

Return the maximal or minimal pointer argument according to $pointer<.