Bfile StrToName ncpy

From WikiPrizm
Revision as of 02:03, 10 March 2012 by Ahelper (talk | contribs) (Initial version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Synopsis

Syscall:

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.

Inputs

  • 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.

Outputs

  • short unsigned int* dest - A pointer to a buffer of appropriate size containing the output 16 bit string.

Comments

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.