www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


InetToAscii

Convert an IP address to an ASCII dotted decimal IP string.

int InetToAscii ( const unsigned long far *IPAddress,
                  char far *IPAddressStringPtr );

Parameters

IPAddress

Pointer to the 32 bit IP address in network byte order ("big endian").

IPAddressStringPtr

Output parameter:   Pointer to a 16 character buffer (minimum) where a null terminated ASCII string will be written by this API function containing the IP address expressed in dotted decimal notation.

Return Value

Always 0

Comments

This buffer at IPAddressStringPtr must have space for 16 Bytes!.

SC1x3/SC2x Comments

This function applies only to IPv4 addresses.   The inet_ntop API can be used for either IPv4 or IPv6 address conversions.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00V1.00V0.90V1.00

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document