Ignore:
Timestamp:
Jul 16, 2008 9:58:14 PM (12 years ago)
Author:
ladanyi
Message:

switch from strdup to CoinStrdup?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.8/Clp/src/Clp_C_Interface.cpp

    r1088 r1230  
    77#include "CoinPragma.hpp"
    88
    9 #include <math.h>
    10 #include <string.h>
    11 
    12 /* 04-07-08 bobe including extras.h to get strdup() */
    13 #if defined(__MWERKS__)
    14 #include <extras.h>
    15 #endif
     9#include <cmath>
     10#include <cstring>
    1611
    1712#include "CoinHelperFunctions.hpp"
     
    163158    for (i=0;i<nString;i++) {
    164159      std::string value = stringValue(i);
    165       vString[i]=strdup(value.c_str());
     160      vString[i]=CoinStrdup(value.c_str());
    166161    }
    167162    callback_(model_,messageNumber,
Note: See TracChangeset for help on using the changeset viewer.