How to get the default gateway ?

I have not found any solution but using “system()” and parsing output.
Does somebody know a proper ioctl or other function that does the job in
a more direct way.

Thanks,
Enrico

| Enrico Bendinelli | Prisma Engineering srl |
| enricob@prisma-eng.it | Via Petrocchi 4 20127 MILANO ITALY |
| http://www.prisma-eng.it | Tel. +39 02 26113507 Fax. 26113597 |