_cputs

Description

Puts a string to the console.

#include <conio.h> Required only for function declarations  

int _cputs( char *string );

string Output string  

Remarks

The _cputs function writes the null-terminated string pointed to by string directly to the console. Note that a carriage-return–line-feed (CR-LF) combination is not automatically appended to the string.

Return Value

If successful, _cputs returns a 0. If the function fails, it returns a nonzero value.

Compatibility

Standards:None

16-Bit:DOS, QWIN, WIN, WIN DLL

32-Bit:DOS32X

See Also

_putch

Example

/* CPUTS.C: This program first displays a string to the console. */

#include <conio.h>

void main( void )

{

/* String to print at console. Note the \r (return) character. */

char *buffer = "Hello world (courtesy of _cputs)!\r\n";

_cputs( buffer );

}

Output

Hello world (courtesy of _cputs)!