I am a little confused with respect to the difference in the functions which are defined with/without the wcs/_w/_mbs prefix.
For Example:
- fopen(),_wfopen()
On msdn it is given that:
The fopen function opens the file that is specified by filename. _wfopen is a wide-character version of fopen; the arguments to _wfopen are wide-character strings. Otherwise, _wfopen and fopen behave identically.
I just had a doubt whether there is any platform dependence to windows associated with the addition of the "_w" prefix.
- strcpy(),wcscpy(),_mbscpy()
On msdn it is given that:
wcscpy and _mbscpy are, respectively, wide-character and multibyte-character versions of strcpy.
Again there is a doubt if the addition of "wcs" or "_mbs" is platform dependent.
EDIT:
- Is WideCharToMultiByte function also platform dependent?
WideCharToMultiByte is not a C Runtime function, it's a Windows API,hence it is platform dependent
- Similarly is wcstombs_s function also platform dependent?
It was nonstandard but was standardized in C11 Annex K.