It doesn’t exist in Windows either. This is not platform specific, it is C implementation, that is, the compiler has a standard library that does not implement this API.
There is a specification of what the C language has, and the implementations must follow it in order to be called C. So the compiler must have a standard library that conforms to the specification. It is true that, in general, it prohibits having anything else, and conio
is something else. But usually compilers don’t put too many things in, unless they’re very useful, and very well implemented, which in practice will eventually force you into a new version of the specification. If you don’t come in, you shouldn’t have.
In fact to conio
is very bad and should not be used. It was included in a compiler that wanted to have differential and followed by a few others, but those who survived soundly did not do this.
A good Windows compiler like VS-C++, Clang, or Mingw (GCC) does not have conio
.
There are several libraries that only work on Windows, or only on Linux, or only on Macos, or only on Android, etc. Even on different distributions of Linux or other Unix-like, or a variant of Windows, not to mention different versions.
But in general we’re talking about platform and non-standard C Apis.
If you need more in-depth answers ask more specific and detailed questions.
There are many more that are just linux/Unix specifics, and many others that are just windows specifics.
– Isac