openpty() function

P

PaowZ

Hello there,

I'm trying to program a little app where I need to input data into a
first terminal (the one I launch the process) and to ouput data into
another terminal. So I need to open a terminal during execution. After
some searches, I got interested in openpty() function.
I read some examples and man-pages but something is not very clear in
my mind.
Does this function allow opening new terminal or what ?
Do I expect the right aim of this function ?
'Cause when I run my prog, nothing happens, so I wonder :S
Here the lines:
int master, slave;
if (openpty ( &master, &slave, NULL, NULL, NULL) < 0)
error("Error !!!");


Thanks a lot.
 
C

Chris Dollin

PaowZ said:
Oops...
Sorry for having bothered you.. I had to post to comp.unix.*
++

Thanks for the apology, and I hope comp.unix.* will help
you solve your problem.
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top