Ch Standard Demos
ISO C90 Standard
Wide characters
ISO C99 Standard
C++ features
Complex IEEE floating-point arithmetic
Assumed-shape arrays
Nested functions
Interactive C statement execution
Interactive command shell
Shell Programming
Safe Ch
Ch applets
String Type
Adjustable array bounds
Auto array bound checking
Socket/Winsock
POSIX
Unix utilities for Windows
Windows
GTK+
X/Motif
OpenGL
Toolkits Demos
CGI
ODBC
ChExcel
Ch Professional Demos
Computational array
Plotting
Numerical analysis
C LAPACK functions
/* Wide characters in Addendum 1 for C90.  */

#include <wchar.h>
#include <stdio.h>

int main() { 
    char line[100];
    wchar_t str1[100], *str2 = L"hello world";
    int retval,len;

    strcpy(line, "hello");
    len = strlen(line);
    mbstowcs(str1, line, len);
    retval = wcscmp(str1, str2);
    if(retval > 0)
        printf("str1 is greater than str2\n");
    else if(retval == 0)
        printf("str1 is identical to str2\n");
    else if(retval < 0)
        printf("str1 is less than str2\n");
    else
        printf("Error!\n");
}
    

The output is: str1 is less than str2