Changeset 2337
- Timestamp:
- 09/28/09 09:27:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/io/FetchParams.cpp
r2335 r2337 110 110 else if (mxIsChar(pfield)){ 111 111 112 /* string: */ 112 /* we have a string parameter:*/ 113 114 int stringlen; 115 char* string=NULL; 116 117 stringlen = mxGetM(pfield)*mxGetN(pfield)+1; 118 string = (char*)xmalloc(sizeof(mxChar)*stringlen); 119 mxGetString(pfield,string,stringlen); 120 113 121 param= new Param(count+1,name,STRING); 114 param->SetString( (char*)mxGetChars(pfield));122 param->SetString(string); 115 123 parameters->AddObject(param); 116 124 125 xfree((void**)&string); 117 126 } 118 127 else if (mxIsCell(pfield)){
Note:
See TracChangeset
for help on using the changeset viewer.