Need Help with fgetws() stream issue
hi guys. While writing a program I need to use the function fgetws() which has following parameters
wchar_t *fgetws(wchar_t *WS, size_t n, FILE *stream);
Now the problem is, I need to pass a 'String' or 'char pointer' instead of stream as the third parameter which is obviously not possible directly.
Kindly someone suggest me a method to convert a string into the appropriate stream which I can pass in that function or an alternative to fgetws().
Thanks in advance.