Next: , Previous: , Up: iklib pointers   [Index]


6.45.2 Predicates

The following bindings are exported by the libraries (vicare) and (vicare system $foreign) and reexported by the library (vicare ffi).

Function: pointer? obj

Return #t if obj is a pointer object, return #f otherwise.

Function: false-or-pointer? obj

Return #t if obj is a pointer object or #f, return #f otherwise.

Function: pointer-null? obj

Return #t if obj is a pointer object and it represents NULL; otherwise return #f. If obj is not a pointer: return #f.

Function: pointer-non-null? obj

Return #t if obj is a pointer object and it is not NULL; otherwise return #f. If obj is not a pointer: return #f.

Function: pointer-and-offset? ptr diff

Return true if the exact integer diff can be added to ptr without causing a pointer overflow or underflow.

Function: list-of-pointers? obj

Return #t if obj is a, possibly empty, proper list of pointer objects; otherwise return #f.