VMS Help  —  CRTL  fwprintf  Example
      The following example shows how to print a date and time in the
      form "Sunday, July 3, 10:02", followed by pi to five decimal
      places:

        #include <math.h>
        #include <stdio.h>
        #include <wchar.h>
        /* . . . */
        wchar_t *weekday, *month; /* pointers to wide-character strings */
        int day, hours, min;
        fwprintf(stdout, L"%ls, %ls %d, %.2d:%.2d\n",
           weekday, month, day, hour, min);
        fwprintf(stdout, L"pi = %.5f\n", 4 * atan(1.0));
Close Help