User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed



int putch(int c);

description of putch

prints characters on the screen.

putch gives the character c to the current text window. It is a text-mode function that displays output directly to the console.
putch replaces the newline character (\ n) characters are not merchandise return / line feed.

Depending _directvideo of the global variable, the string is written either directly or through a BIOS call to screen memory.

Return values: success the character, failure EOF

#include <stdio.h>
#include <conio.h>
int main(void)
   char ch = 0;
   printf("Input a string:");
   while ((ch != '\r'))
     ch = getch();
   return 0;

output of putch c example

  Input a string: test123

on the occasion of the current invasion of Russia in Ukraine

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

Impressum Datenschutz