www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - TCP/IP API


inet_addr

Converts a dotted decimal IP address string to an unsigned long.

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

Parameters

IPAddressStringPtr

Pointer to null terminated ASCII string of network address in dot notation.

IPAddress

Output parameter:  Pointer to a 32 bit location where binary equivalent to the provided ASCII IP address will be output.

Return Value

0: success
non-zero: Invalid IP address.

SC1x3 Comments

This function applies only to IPv4 addresses.   The inet_pton 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

    SC12SC13SC11SC1x3
    V1.00V1.00V1.00V0.90

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


End of document