File pointeur of stdout

T

Try Kret

Hello ,

I write a program that require the users to enter their password. How to do it?
According to a book of K&R, "When a program begins execution, three stream stdin,
stdout, stderr are already open". But how to get pointers to these stream?

Faithfully yours,
Try.
 
T

Tim Miller

Hello ,

I write a program that require the users to enter their password. How to do it?
According to a book of K&R, "When a program begins execution, three
stream stdin,
stdout, stderr are already open". But how to get pointers to these stream?

stdin, stdout, and stderr *are* file pointers to the standard input,
standard output, and standard error streams. Try reading up on functions
such as getchar, fgets, etc.

-Tim Miller
 
K

Kevin Goodsell

Tim said:
stdin, stdout, and stderr *are* file pointers to the standard input,
standard output, and standard error streams.

But you do have to #include <stdio.h> in order to get the declarations
for them.

-Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top