cputc

Writes a specified character to the application screen.

Library:LibC
Classification:Other
Service:File and Directory I/O

Syntax

  #include <stdio.h> 
   
  int cputc (
     int   ch);
  

Parameters

ch

(IN) Specifies a character.

Return Values

If successful, returns the character.

Remarks

The cputc function is a hard-wired console function. Even if stdout is redirected, the output from this function still goes to the application screen.

If your application does not create a screen with the SCREENNAME directive at compile time, the output is directed to one of the following console screens:

  • On NetWare 5.x and earlier, to the System Console screen

  • On NetWare 6.0 and later, to the System Logger screen.

For more information on screen types and screen creation, see Section 3.3, Screen Management.

See Also