I often see people use the header file of conio.h
in C and C++, although I can´t see any major benefits in use of the functions inside of conio.h
in comparison to the standard library functions. conio.h
has furthermore the disadvantages of being dependent on the Windows/MS-DOS environment and not being part of the C standard.
- What is the reason to choose functions of
conio.h
? - What do functions inside of
conio.h
provide, what the functions of the standard C libraries can't? - Why to choose the
conio
library?
conio
means console I/O. So it is for console applications. – Correiastdin
now. Std C has no concept of time withinstdin
.stdin
is just a sequence of bytes. – Lorikbhit
in the standard C library. – Protectkbhit
in the standard library. – Surfperchkbhit()
? – Bawlkbhit
that does what standard library can't. I just messed up the comment being sleepy, Sorry! – Surfperch