User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:cputs

cputs

int cputs(const char *str);

description of cputs

Returns a string to the screen.

cputs is the null-terminated string from str in the current text window. The newline character is not here appended to the string.

Depending _directvideo of the global variable, the string is written either directly or through a BIOS call to screen memory.
To contrast to fprintf and printf, not translated cputs line character (\ n) in the combination of characters carriage return / line feed (\ r \ n).

   Note: Do not use this function in any case in Win32 GUI applications.
#include <conio.h>
int main(void)
{
 
    clrscr();
    window(10, 10, 80, 25);
    cputs("Text in Window\r\n");
    getch();
    return 0;
}

output of cputs c example

  Text in Window

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/cputs.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz