cputs

Writes a specified character string directly to the current screen.

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

Syntax

  #include <stdio.h> 
   
  int cputs (
     const char   *buf);
  

Parameters

buf

(IN) Points to a character string.

Return Values

If successful, returns 0. Otherwise, returns nonzero and sets errno.

Remarks

The carriage-return and line-feed characters are not appended to the string. The null-terminating character is not written.

The cputs 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

cputc, puts