/* TURN A 32 BIT DECIMAL IP ADDRESS INTO 4 QUADS */
/* SPAMMERS CAN RUN, BUT THEY CAN'T HIDE */
/* Felix Tilley */
/* No Guarantees on how this will run on your computer. */
/* An unsigned long must be AT LEAST 32 bits for this to work */
/* An unsigned long must be AT LEAST 32 bits for this to work */
/* An unsigned long must be AT LEAST 32 bits for this to work */
/* NO JOKE */
#include <stdio.h>
main()
{
unsigned long webaddr, quad0, quad1, quad2, quad3, quotient, temp, remainder;
printf ("Enter web address as decimal: ");
scanf ("%lu", &webaddr);
printf ("\nWEB ADDRESS: %lu \n", webaddr);
quad0 = webaddr % 256;
quotient = webaddr / 256;
quad1 = quotient % 256;
quotient = quotient / 256;
quad2 = quotient % 256;
quotient = quotient / 256;
quad3 = quotient;
printf ("QUAD IP ADDRESS: %lu\.%lu\.%lu\.%lu \n", quad3,quad2,quad1,quad0);
printf ("\nHope this helps.\nFelix Tilley \n");
exit(0) ;
Quote:}