port 23

Hi All,
I have conencted to port 23(Telnet port) through a C program
but even if i tried recv()
nothing was printed on the screen.

Regards,
Sayantan

Can you provide some code?

Driving interactive applications like telnet through naive C (pipes,system(),etc...)
is a bad choice. Look at expect.
If you decide to do it though have a look at the man pages
for forkpty or a similar means of pty allocation on your platform.