User Tools

Site Tools


c:conio.h:putch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:conio.h:putch [2013/02/03 21:04]
127.0.0.1 external edit
c:conio.h:putch [2024/02/16 01:05] (current)
Line 1: Line 1:
 ====== putch ====== ====== putch ======
 <code c> <code c>
 +int putch(int c);
 </code> </code>
  
 ==== description of putch ==== ==== description of putch ====
-putch is in work by code-reference.com \\  +prints characters on the screen.\\ 
-if you are faster... don't hasitate and add it+\\ 
 +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
 <code c> <code c>
-no example at the moment+#include <stdio.h> 
 +#include <conio.h> 
 + 
 +int main(void) 
 + { 
 +   char ch = 0; 
 +   printf("Input a string:"); 
 +   while ((ch != '\r')) 
 +   { 
 +     ch = getch(); 
 +     putch(ch); 
 +   } 
 +   return 0; 
 + }
 </code> </code>
  
 ===== output of putch c example ===== ===== output of putch c example =====
-    no example at the moment+    Input a string: test123 
 +    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