i couldnt get this program to compile, so i wrote a quick sh script to do
the same thing.
!/bin/sh
# change your ip to DWORD
# another quickie by eric polin.. [EMAIL PROTECTED]
echo "what is your ip address? "
read OC1
IP1=`echo $OC1 | awk -F. '{print $1}'`
IP2=`echo $OC1 | awk -F. '{print $2}'`
IP3=`echo $OC1 | awk -F. '{print $3}'`
IP4=`echo $OC1 | awk -F. '{print $4}'`
echo -e "your ip address in dword is: \c"
expr \( \( \( \( \( $IP1 \* 256 + $IP2 \) \* 256 \) + $IP3 \) \* 256 \) +
$IP4 \)
enjoy,
eric polin
--- Jean-Frangois_Asselin <[EMAIL PROTECTED]>
wrote:
> http://www.pc-help.org/obscure.htm
>
Using info from above URL i wrote a small program
that will do conversion from decimal to IP and back
http://nocon.darkflame.net/files/ip2d.c
-NC
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com