Bfile StrToName ncpy
Function declaration: void Bfile_StrToName_ncpy(short unsigned int *dest, const unsigned char *source, int n);
This function is used to make a 16 bit string from an 8 bit character array.
- const unsigned char* source - A pointer to a string that will be converted.
- int n - Number of characters to be read in from source. dest must be n*2 bytes in size.
- short unsigned int* dest - A pointer to a buffer of appropriate size containing the output 16 bit string.
When you use a function, such as Bfile_OpenFile_OS, the path string must be a 16 bit string. Simply using char16_t works in some cases but not for all. The strings generated by the two (function vs. 16 bit characters) are not identical in data.