### wcsid -- Determine Character Set ID for Wide Character

Format

>     #include <stdlib.h>
>     int wcsid(const wchar_t c);

Language Level: Extension
wcsid determines the character set identifier for the specified wide character wc. You can specify character set identifiers for each character in the charmap file for a locale.

Return Value
wcsid returns the character set identifier for the wide character, or -1 if the wide character is not valid.

Example
This example uses wcsid to get the character set identifier for the wide character A.

    #include <stdio.h>
    #include <stdlib.h>

    int main(void)
    {
       wchar_t wc = L'A';
       int     rc;

       rc = wcsid(wc);
       printf("wide character '%c' is in character set id %i\n", wc, rc);
       return 0;

       /******************************************************************
          The output should be similar to:

          wide character 'A' is in character set id 0
       ******************************************************************/
    }

Internationalization

mblen -- Determine Length of Mulitbyte Character
strlen -- Determine String Length