conio.h functions list in c

What is conio.h in c?

Conio.h is a C header file used mostly by MS-DOS compilers to provide console input/output. It is not part of the C standard library or ISO C, nor it is defined by POSIX. This header declares several useful library functions for performing “console input and output” from a program.

The library functions declared by conio.h vary somewhat from compiler to compiler. As originally implemented in Lattice C, the various functions mapped directly to the first few DOS INT 21H functions.

Conio.h functions list in c

Following are the list of conio.h functions list in c programming language.

Function NameDescriptions
kbhitDetermines if a keyboard key was pressed
cgetsReads a string directly from the console
cscanfReads formatted values directly from the console
putchWrites a character directly to the console
cputsWrites a string directly to the console
cprintfFormats values and writes them directly to the console
clrscrClears the screen
getchGet char entry from the console

Source code of Conio.h header file.

 

 

Reference: wikipedia.org

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers.