Current directory :
Root directory

Tree directory :
hdh@jabber.cz
  Filter :
  Language :  
 
/* code lifted from pidgin <http://pidgin.im/>
the same license as pidgin
*/
 
#include <stdio.h>
#include <stdlib.h>
 
int main() {
  char decoded[9];// = "67217600"; //100663306";
  //char tmp2 = g_strndup((const char *)decoded, len); /* so its \0 terminated...*/
  char *p;
  printf ("what gives? ");
  gets (decoded);
 
  int l = strtol(decoded, &p, 10); //ip = strtol(tmp2, NULL, 10);
  //printf ("%s", l);
  printf ("%u.%u.%u.%u",l & 0xff, (l >> 8) & 0xff,
	 (l >> 16) & 0xff, (l >> 24) & 0xff);
 
  return 0;
}
 
VIP: No | Used: 99M/101M | 0.071 sec / GZIP-2