im trieng to help some person with getting the default gateway in c .
the idea is to use normal bash with route (excuting route to get the default gateway).
my first idea was to output it to file then reading it from that but then i realized why wont i use pipe ?
ok the problem is that i don't know how to use it ..
could you please guide to a tutrial for piping in C ?
what i need to do is ..