Format
#include <conio.h> int _cputs(char *str);
Language Level: Extension
_cputs writes
the string that str points to directly to the screen. The string
str must end with a null character (\0). _cputs does not
automatically add a carriage return followed by a line feed to
the string.
Return Value
If successful, _cputs returns 0. Otherwise,
it returns a nonzero value.
Example
This example outputs a prompt to the
screen.
#include <conio.h>
int main(void)
{
char *buffer = "Insert data disk in drive a: \r\n";
_cputs(buffer); return 0;
/**************************************************
The output should be:
Insert data disk in drive a: **************************************************/ }
![]()
_cgets -- Read String of
Characters from Keyboard
fputs -- Write
String
_putch -- Write
Character to Screen
puts -- Write a
String
<conio.h>