<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ip to 32 bit | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/ip-to-32-bit/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 09 Jun 2012 16:03:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C Program to convert IP address to 32-bit long int</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-convert-ip-address-to-32-bit-long-int/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-convert-ip-address-to-32-bit-long-int/#comments</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 16:03:39 +0000</pubDate>
				<category><![CDATA[Number Programs]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[ip to 32 bit]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3293</guid>

					<description><![CDATA[<p>Source: Dr. G T Raju, Professor &#038; Head, Dept. of CSE, RNSIT #include #include #include union iptolint { char ip[16]; unsigned long int n; }; unsigned long int conv(char []); main() { union iptolint ipl; printf(" Read the IP Address tobe converted\n"); scanf("%s",ipl.ip); ipl.n=conv(ipl.ip); printf(" Equivalent 32-bit long int is : %lu\n",ipl.n); } unsigned long</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-convert-ip-address-to-32-bit-long-int/">C Program to convert IP address to 32-bit long int</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Source: Dr. G T Raju, Professor &#038; Head, Dept. of CSE, RNSIT</p>
<pre lang="C" line="1">
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
union iptolint
{
    char ip[16];
    unsigned long int n;
};
unsigned long int conv(char []);

main()
{
    union iptolint ipl;
    printf(" Read the IP Address tobe converted\n");
    scanf("%s",ipl.ip);
    ipl.n=conv(ipl.ip);
    printf(" Equivalent 32-bit long int is : %lu\n",ipl.n);
}

unsigned long int conv(char ipadr[])
{
    unsigned long int num=0,val;
    char *tok,*ptr;
    tok=strtok(ipadr,".");
    while( tok != NULL)
    {
        val=strtoul(tok,&ptr,0);
        num=(num << 8) + val;
        tok=strtok(NULL,".");
    }
    return(num);
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-convert-ip-address-to-32-bit-long-int/">C Program to convert IP address to 32-bit long int</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-convert-ip-address-to-32-bit-long-int/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
