Changeset 9729 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Oct 24, 2006, 12:29:53 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r9725 r9729 1 %%% $Id: psLibSDRS.tex,v 1.43 6 2006-10-24 21:24:08price Exp $1 %%% $Id: psLibSDRS.tex,v 1.437 2006-10-24 22:29:53 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 2033 2033 \begin{prototype} 2034 2034 psArray *psArrayAlloc(long nalloc); 2035 psArray *psArrayAllocEmpty(long nalloc); 2035 2036 psArray *psArrayRealloc(psArray *array, long nalloc); 2036 2037 \end{prototype} … … 2038 2039 In these functions, \code{nalloc} is the number of elements to 2039 2040 allocate. In \code{psArrayAlloc}, the value of \code{psArray.n} is 2040 initially set to zero. Users may choose to restrict the data range 2041 after the \code{psArrayAlloc} function is called. For 2042 \code{psArrayRealloc}, if the value of \code{nalloc} is smaller than 2043 the current value of \code{psArray.n}, then \code{psArray.n} is set to 2044 \code{nalloc}, the array is adjusted down to match \code{nalloc}, and 2045 the extra elements are dropped and freed if necesitated by the 2046 reference counter. If \code{nalloc} is larger than the current value 2047 of \code{psArray.n}, \code{psArray.n} is left intact. If the value of 2048 \code{array} is \code{NULL}, then \code{psArrayRealloc} must return an 2049 error. 2041 initially set to the number of allocated elements; in 2042 \code{psArrayAllocEmpty}, the value of \code{psArray.n} is initially 2043 set to zero. Users may choose to restrict the data range after the 2044 \code{psArrayAlloc} function is called. For \code{psArrayRealloc}, if 2045 the value of \code{nalloc} is smaller than the current value of 2046 \code{psArray.n}, then \code{psArray.n} is set to \code{nalloc}, the 2047 array is adjusted down to match \code{nalloc}, and the extra elements 2048 are dropped and freed if necesitated by the reference counter. If 2049 \code{nalloc} is larger than the current value of \code{psArray.n}, 2050 \code{psArray.n} is left intact. If the value of \code{array} is 2051 \code{NULL}, then \code{psArrayRealloc} must return an error. 2050 2052 2051 2053 Since \code{psArray} stores pointers, values on the array shall always
Note:
See TracChangeset
for help on using the changeset viewer.
