Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <conio.h>
    int cputs( const char *buf );

Description:
    The cputs function writes the character string pointed to by buf
    directly to the console using the  putch function.  Unlike the  puts
    function, the carriage-return and line-feed characters are not appended
    to the string.  The terminating null character is not written.

Returns:
    The cputs function returns a non-zero value if an error occurs;
    otherwise, it returns zero.  When an error has occurred,  errno contains
    a value indicating the type of error that has been detected.

See Also:
    fputs, putch, puts

Example:
    #include <conio.h>

    void main()
      {
        char buffer[82];

        buffer[0] = 80;
        cgets( buffer );
        cputs( &buffer[2] );
        putch( '\r' );
        putch( '\n' );
      }

Classification:
    WATCOM

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson