我正在尝试调试我的测试C程序,但是在使用GDB进行调试时,我得到了msvcrt!isspace()'这是我的程序的代码:
#include <stdio.h>
#include <string.h>
wchar_t* foobar(){
return L"ab\ncd\nef\ngh";
}
void my_function1(){
wchar_t* mystr=foobar();
wchar_t* line;
line = wcstok(mystr, L"\n");
do{
wprintf(L"value = '%s' from functionone\n", line);
}while(line=wcstok(0, L"\n"));
}
void my_function2(){
wchar_t* mystr=foobar();
wchar_t* line;
line = wcstok(mystr, L"\n");
do{
wprintf(L"value = '%s' from functiontwo\n", line);
}while(line=wcstok(0, L"\n"));
}
int main(){
my_function1();
my_function2();
}
那么如何解决这个问题呢?