Changeset 9725 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Oct 24, 2006, 11:24:08 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r9692 r9725 1 %%% $Id: psLibSDRS.tex,v 1.43 5 2006-10-21 01:35:07price Exp $1 %%% $Id: psLibSDRS.tex,v 1.436 2006-10-24 21:24:08 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 3684 3684 \begin{prototype} 3685 3685 psVector *psVectorAlloc(long nalloc, psElemType type); 3686 psVector *psVectorAllocEmpty(long nalloc, psElemType type); 3686 3687 psVector *psVectorRealloc(psVector *vector, long nalloc); 3687 3688 psVector *psVectorRecycle(psVector *vector, long nalloc, psElemType type); … … 3690 3691 In these functions, \code{nalloc} is the number of elements to 3691 3692 allocate. For \code{psVectorAlloc}, the value of \code{psVector.n} is 3692 initially set to zero. Users may choose to restrict the data range3693 after the \code{psVectorAlloc} function is called. For 3694 \code{psVectorRealloc}, if the value of \code{nalloc} is smaller than 3695 the current value of \code{psVector.n}, then \code{psVector.n} is set 3696 t o \code{nalloc}, the array is adjusted down to match \code{nalloc},3697 and the extra elements are lost. If \code{nalloc} is larger than the 3698 current value of \code{psVector.n}, \code{psVector.n} is left intact. 3699 If the value of \code{vector} is \code{NULL}, then 3700 \code{ psVectorRealloc} must generate an error.3693 initially set to the number of allocated values; for 3694 \code{psVectorAllocEmpty}, the value of \code{psVector.n} is initially 3695 set to zero. For \code{psVectorRealloc}, if the value of 3696 \code{nalloc} is smaller than the current value of \code{psVector.n}, 3697 then \code{psVector.n} is set to \code{nalloc}, the array is adjusted 3698 down to match \code{nalloc}, and the extra elements are lost. If 3699 \code{nalloc} is larger than the current value of \code{psVector.n}, 3700 \code{psVector.n} is left intact. If the value of \code{vector} is 3701 \code{NULL}, then \code{psVectorRealloc} must generate an error. 3701 3702 3702 3703 \code{psVectorRecycle} shall recycle the input \code{vector}, such
Note:
See TracChangeset
for help on using the changeset viewer.
