I work on code blocks, the file is in utf8.
When runs i take the problem.
Program received signal SIGSEGV, Segmentation fault.
wchar_t *s1(L"today is a beautifull day");
wchar_t *s3=wcsncpy(s3,s1,2);
Any help please. I just try to copy 2 wide chars to new string.
Thank's
Jim
You are copying to an uninitialized pointer (s3).