#include <climb.h> sv = _vector(ptr,length); sv = _VECTOR(obj); /* Macro */
The "_vector" function returns a "struct _vector" shrink vector framing a specified object. _VECTOR is a macro that performs the same operation. The shrink vector gives full permissions on the object.
The _VECTOR macro expands to a call to the "_vector" function, using "sizeof" to obtain the size of "obj". For example, in
int arr[100]; struct _vector sh; sh = _VECTOR(arr);
the "sh" variable is assigned a shrink vector framing the "arr" array.
Copyright © 1996, Thinkage Ltd.