S
sam
Hi,
This is a C programming specific with TCP/IP relation.
Supposed I have two string (char *) variables with the following assignment:
ip_str = "10.1.2.3"
netmask_str = "255.255.0.0"
How can I use C programming technique to get the subnet 10.1.0.0?
I tried to use "struct in_addr", but not sure how to start writing a
simple code for it?
Is there any simple C code that I can follow in this regard?
Thanks
Sam
This is a C programming specific with TCP/IP relation.
Supposed I have two string (char *) variables with the following assignment:
ip_str = "10.1.2.3"
netmask_str = "255.255.0.0"
How can I use C programming technique to get the subnet 10.1.0.0?
I tried to use "struct in_addr", but not sure how to start writing a
simple code for it?
Is there any simple C code that I can follow in this regard?
Thanks
Sam