+ Reply to Thread
Results 1 to 4 of 4

Thread: dotted decimal IP address into hexadecimal

  1. #1

    Default dotted decimal IP address into hexadecimal


  2. #2
    G.Gaunt Guest

    Default dotted decimal IP address into hexadecimal

    Thanks, if inet_addr() returns an unsigned 4-byte integer, why does the API documentation say inet_addr() returns signed "-1" if the API is unsuccessful?

  3. #3
    G.Gaunt Guest

    Default dotted decimal IP address into hexadecimal

    Does an API exist that converts dotted decimal IP address into hexadecimal? For example:
    200.201.202.203 => x'C8C9CACB'

  4. #4

    Default dotted decimal IP address into hexadecimal

    You're right, the prototype I gave is wrong. It should specify 10i 0 for the return value. Thanks for catching it. Tom Daly

+ Reply to Thread

Similar Threads

  1. Reading HEX and converting to decimal
    By J.Wells in forum RPG
    Replies: 23
    Last Post: 11-02-2006, 06:32 AM
  2. hexadecimal date math
    By bibarnes@yahoo.com in forum RPG
    Replies: 2
    Last Post: 11-14-2002, 10:07 AM
  3. Why does turquois make dotted underline on display files?
    By David Abramowitz in forum IBM i (OS/400, i5/OS)
    Replies: 3
    Last Post: 01-24-2002, 02:56 AM
  4. ILE C/400 float to decimal problems
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 10-23-1997, 09:33 AM
  5. Binary to Decimal conversion
    By flensburg@novasol.dk in forum Programming
    Replies: 1
    Last Post: 08-25-1997, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts