Changeset 13402
- Timestamp:
- 2012-10-16T14:33:45+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/runtime/FMIImpl.c
r13401 r13402 154 154 155 155 /* 156 * Reads the model variable base type. 156 * Reads the model variable name. Returns a malloc'd string that should be 157 * free'd. 157 158 */ 158 159 char* getModelVariableName(fmi1_import_variable_t* variable) 159 160 { 160 161 const char* name = fmi1_import_get_variable_name(variable); 161 int length = strlen(name);162 char* res = strndup(name, length);162 char* res = strdup(name); 163 int length = strlen(res); 163 164 164 165 charReplace(res, length, '.', '_');
Note: See TracChangeset
for help on using the changeset viewer.