I
I
Insolent Muzzle2021-06-23 13:01:01
C++ / C#
Insolent Muzzle, 2021-06-23 13:01:01

How is console I/O implemented in C/C++?

I've been wondering about the title question for a long time now. Would like to know how. I had ideas with assembler inserts, but it's not very practical.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2021-06-23
@res2001

The OS handles the I/O directly. The C/C++ standard library uses the OS API for I/O.

C
CityCat4, 2021-06-23
@CityCat4

The libc source is taken, the implementation of the function is looked for. Most likely there will be several nesting of functions into each other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question