|
|
@ -199,8 +199,8 @@ extern "C" void cuda_devicereset() |
|
|
|
|
|
|
|
|
|
|
|
static bool substringsearch(const char *haystack, const char *needle, int &match) |
|
|
|
static bool substringsearch(const char *haystack, const char *needle, int &match) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int hlen = strlen(haystack); |
|
|
|
int hlen = (int) strlen(haystack); |
|
|
|
int nlen = strlen(needle); |
|
|
|
int nlen = (int) strlen(needle); |
|
|
|
for (int i=0; i < hlen; ++i) |
|
|
|
for (int i=0; i < hlen; ++i) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (haystack[i] == ' ') continue; |
|
|
|
if (haystack[i] == ' ') continue; |
|
|
|