Programmatically get Ethernet link status?

I want to be able to tell from a program if there is a valid link on the
ethernet port. I noticed netstat -l reports a media rate that switches from
100 to 10 to 0. How can I get this information from a c program.

Thanks,
Curt

If you send me an e-mail, I will give you some code to do this.

Previously, Curt wrote in qdn.public.qnx4:

I want to be able to tell from a program if there is a valid link on the
ethernet port. I noticed netstat -l reports a media rate that switches from
100 to 10 to 0. How can I get this information from a c program.

Thanks,
Curt