Writes a string to the text window on the screen
Declaration:
int <a href="http://gan.doubleclick.net/gan_click?lid=41000000035692252&pubid=21000000000397534">cputs</a>(const char *str);
Remarks:
cputs writes the null-terminated string str to the current text window. It
does not append a newline character.
The string is written either directly to screen memory or by way of a BIOS
call, depending on the value of directvideo.
cputs does not translate linefeed characters (\n) into
carriage-return/linefeed character pairs (\r\n).
Return Value:
Returns the last character printed.
Example:
#include <conio.h>
int main(void)
{
/* clear the screen */
clrscr();
/* create a text window */
window(10, 10, 80, 25);
/* output some text in the window */
cputs("This is within the window\r\n");
/* wait for a key */
getch();
return 0;
}
0 comments:
Post a Comment