[Serusers] lcr module and column type in DB

Andreas Granig andreas.granig at inode.info
Mon Mar 7 12:47:51 CET 2005


Java Rockx wrote:
> The correct answer is 85063633
> 
> You can find a tool on line for this at http://www.dnsstuff.com/

Or use your own simple one, like:

#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int main(int argc, char **argv)
{
     struct in_addr a;

     if(argc != 2)
     {
         fprintf(stderr, "Usage: %s <ip address>\n", argv[0]);
         return -1;
     }

     if(inet_aton(argv[1], &a) == 0)
     {
         fprintf(stderr, "Invalid ip address '%s'\n", argv[1]);
         return -1;
     }

     fprintf(stdout, "%d\n", a.s_addr);

     return 0;
}




More information about the sr-users mailing list