L_VecInit

Summary

Initializes the fields in a vector handle.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecInit(pVector)

Parameters

pVECTORHANDLE pVector

Pointer to the vector handle to be initialized.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

You must call this function before calling L_VecCopy.

Required DLLs and Libraries

See Also

Functions

Example

This example will make a copy of a vector handle.

L_LTVKRNTEX_API L_INT VecInitExample(pVECTORHANDLE pVector) 
{ 
   VECTORHANDLE TmpVector;  /* Temporary vector handle */ 
   L_INT nRet;       /* Return value */ 
 
   /* Initiate the temporary vector handle */ 
   nRet = L_VecInit( &TmpVector ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Make a copy */ 
   nRet = L_VecCopy( &TmpVector, pVector, VECTOR_FLAGS_REPLACE ); 
   if( nRet != SUCCESS ) 
      return nRet; 
   /*  
   ... 
   Do something with TmpVector 
   ... 
   */ 
 
   /* Destroy temporary vector before returning. */ 
   nRet = L_VecFree( &TmpVector ); 
 
   return nRet; 
} 

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.