Puts a string to the console.
#include <conio.h> | Required only for function declarations |
int _cputs( char *string );
string | Output string |
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.
If successful, _cputs returns a 0. If the function fails, it returns a nonzero value.
Standards:None
16-Bit:DOS, QWIN, WIN, WIN DLL
32-Bit:DOS32X
/* 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 );
}
Hello world (courtesy of _cputs)!