| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"" |
| Date: |
11 Dec 2004 12:17:21 PM |
| Object: |
cout implementation |
hi all,
Is it true that the cout function used in C++ for printing data
to the console is implemented via the "write" system call?
If not then how the cout function is implemented?
Thanks,
Candice
.
|
|
| User: "Rolf Magnus" |
|
| Title: Re: cout implementation |
12 Dec 2004 05:32:58 AM |
|
|
wrote:
Is it true that the cout function used in C++ for printing data
to the console is implemented via the "write" system call?
Maybe, or maybe not. That depens on the compiler/OS/library/...
Some OSs don't even have a "write" system call.
If not then how the cout function is implemented?
The C++ standard doesn't define that. It's up to the implemenation to decide
where the output of cout goes.
.
|
|
|
|

|
Related Articles |
|
|