| 48 | } |
| 49 | |
| 50 | char** engine_buildStrList(const vector<string>& vec) { |
| 51 | char** strList = (char**) malloc((vec.size()+1)*sizeof(char*)); |
| 52 | for (int i=0;i<vec.size();i++) |
| 53 | strList[i] = strdup(vec[i].c_str()); |
| 54 | strList[vec.size()] = NULL; |
| 55 | return strList; |
| 56 | } |
| 57 | |
| 58 | char** engine_getInputList(void* engine) { |
| 59 | Engine* e = static_cast<Engine*>(engine); |
no test coverage detected