@@ -206,11 +206,11 @@ SCIP_RETCODE readSolfile(
206
206
}
207
207
208
208
/* there are some lines which may preceed the solution information */
209
- if ( strncasecmp (buf , "solution status:" , 16 ) == 0 || strncasecmp (buf , "objective value:" , 16 ) == 0 ||
210
- strncasecmp (buf , "Log started" , 11 ) == 0 || strncasecmp (buf , "Variable Name" , 13 ) == 0 ||
211
- strncasecmp (buf , "All other variables" , 19 ) == 0 || strspn (buf , " \n\r\t\f" ) == strlen (buf ) ||
212
- strncasecmp (buf , "NAME" , 4 ) == 0 || strncasecmp (buf , "ENDATA" , 6 ) == 0 || /* allow parsing of SOL-format on the MIPLIB 2003 pages */
213
- strncasecmp (buf , "=obj=" , 5 ) == 0 ) /* avoid "unknown variable" warning when reading MIPLIB SOL files */
209
+ if ( SCIPstrncasecmp (buf , "solution status:" , 16 ) == 0 || SCIPstrncasecmp (buf , "objective value:" , 16 ) == 0 ||
210
+ SCIPstrncasecmp (buf , "Log started" , 11 ) == 0 || SCIPstrncasecmp (buf , "Variable Name" , 13 ) == 0 ||
211
+ SCIPstrncasecmp (buf , "All other variables" , 19 ) == 0 || strspn (buf , " \n\r\t\f" ) == strlen (buf ) ||
212
+ SCIPstrncasecmp (buf , "NAME" , 4 ) == 0 || SCIPstrncasecmp (buf , "ENDATA" , 6 ) == 0 || /* allow parsing of SOL-format on the MIPLIB 2003 pages */
213
+ SCIPstrncasecmp (buf , "=obj=" , 5 ) == 0 ) /* avoid "unknown variable" warning when reading MIPLIB SOL files */
214
214
{
215
215
++ nonvalues ;
216
216
continue ;
@@ -240,11 +240,11 @@ SCIP_RETCODE readSolfile(
240
240
}
241
241
242
242
/* cast the value, check first for inv(alid) or inf(inite) ones that need special treatment */
243
- if ( strncasecmp (valuestring , "inv" , 3 ) == 0 )
243
+ if ( SCIPstrncasecmp (valuestring , "inv" , 3 ) == 0 )
244
244
continue ;
245
- else if ( strncasecmp (valuestring , "+inf" , 4 ) == 0 || strncasecmp (valuestring , "inf" , 3 ) == 0 )
245
+ else if ( SCIPstrncasecmp (valuestring , "+inf" , 4 ) == 0 || SCIPstrncasecmp (valuestring , "inf" , 3 ) == 0 )
246
246
val = SCIPsetInfinity (set );
247
- else if ( strncasecmp (valuestring , "-inf" , 4 ) == 0 )
247
+ else if ( SCIPstrncasecmp (valuestring , "-inf" , 4 ) == 0 )
248
248
val = - SCIPsetInfinity (set );
249
249
else
250
250
{
0 commit comments