= wcslen(str);
wmemset(str, '-', len);
works well but if i convert str[] to *s, it doesn't work.
Segmentation fault why?
[] = "..." is a writable array on stack. * = "..." is a read only string on data section.
How to convert str[] to *s?
Обсуждают сегодня