- Timestamp:
- 03/19/12 20:11:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/double/MatlabVectorToDoubleVector.cpp
r11695 r11733 80 80 81 81 /*allocate and memcpy*/ 82 vector=(double*)xmalloc(rows*sizeof(double)); 83 memcpy(vector,mxvector_ptr,rows*sizeof(double)); 82 if(rows){ 83 vector=(double*)xmalloc(rows*sizeof(double)); 84 memcpy(vector,mxvector_ptr,rows*sizeof(double)); 85 } 86 else{ 87 vector=NULL; 88 } 84 89 } 85 90
Note:
See TracChangeset
for help on using the changeset viewer.