Add IpAddress Through Programatically

Hi all,
Can u give me some suggestions how to add Ip Address through Programmatically , Actually I done it in Windows But now I want same thing in Unix................................

Can Any body Help to me.......

We get same problem, if you got an idea, please let me know:

Hello pcman, please remove your email id from the post. That is against the rules.
You can communicate that to ykmraju via a private message.

Sorry for that.

can you give me an example what are you trying to archive ?

Such like:

ip addr add 192.168.0.100 dev eth0
ip addr add 192.168.0.101 dev eth0
...
...
ip addr add 192.168.0.200 dev eth0

How about:

#include <stdlib.h>

...

system("ip addr add 192.168.0.100 dev eth0");

?

Otherwise, you can study the code of the 'ip' program you are using.