NWcprintf

Writes output directly to the current application screen under format control; enabled for internationalization

Local Servers:blocking
Remote Servers:N/A
Classification:Other
Service:Device I/O

Syntax

  #include <nwconio.h>  
   
  int NWcprintf  (  
     const char   *format,   
     ...);
  

Parameters

format

(IN) Points to the format specification string.

Return Values

NWcprintf returns the number of characters written.

Remarks

The NWcprintf function is identical to the cprintf function, except that NWcprintf is enabled for internationalization.

See Also

printf and vprintf in Single and Intra-File Services, cprintf

Example

  #include <nwconio.h>  
  #include <stdio.h>  
   
  main ()  
  {  
     char *weekday, *month;  
     int day, year;  
     weekday="Saturday";  
     month="April";  
     day=18;  
     year=1991;  
     cprintf ("%s, %s %d, %d\n", weekday, month, day, year);  
  }
  

produces the following:

  Saturday, April 18, 1991