I have started programming in C a few years ago. The two most commonly used header files were <conio.h>
and <stdio.h>
. All my favourite functions for clearing the screen clrscr()
the infamous getch()
function from stopping the window from terminating after it completes etc.
A few years later after I've attended a class regarding programming languages and practices, I've been asked to refrain from using the conio.h
header file. Is using conio
a bad practice in modern programming? What's the reason? why are people so anti-C against using the good old C libraries?
<conio.h>
is non-standard and non-portable. Use a cross-platform library such as ncurses if you need functionality not provided by the standard C libraries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With