Changeset 14662
- Timestamp:
- 04/19/13 14:09:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp
r14656 r14662 45 45 46 46 /*intermediary: */ 47 char *token = NULL;48 char * tokenlistcopy=NULL;47 char *token = NULL; 48 char *tokenlistcopy = NULL; 49 49 50 50 /*First, because tokenizing destroys a string, copy what we have: */ 51 51 tokenlistcopy= xNew<char>(strlen(tokenlist)+1); 52 sprintf(tokenlistcopy, 52 sprintf(tokenlistcopy,"%s",tokenlist); 53 53 54 54 /*Now go through list of tokens, and look for target, return value: */ … … 91 91 token = strtok(NULL, " "); 92 92 } 93 94 /*Clean up and return*/ 95 xDelete<char>(tokenlistcopy); 93 96 return value; 94 97 }
Note:
See TracChangeset
for help on using the changeset viewer.