Code/Desktop
sscanf 에러 - 현재 보류
codens
2014. 3. 26. 14:22
sscanf 에러 - 현재 보류
* 증상
ANSI (sscanf)는 정상
UNICODE (swscanf, stscanf ) 에서 에러
- vc6에서만 에러, vc2010에서는 정상
- 코드
int i=0;
TCHAR *strIP = _T("9;");//에러!! error!!
//TCHAR strIP[3] = _T("9;");//정상, worked
//CStirng strIP = _T("9;");//정상, worked
_stscanf(strIP, _T("%d;"),&i);
_stscanf swscanf
Unhandled exception MSVCRT DLL 0xc0000005 : Access Violation
wint_t __cdecl _ungetwc_lk ( wint_t ch, FILE *str )
{
...
return (wint_t) (*--((wchar_t *)(str->_ptr)) = (wchar_t)(ch & 0xffff));
}
반응형