www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - 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.

See Also

RTOS API

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


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


End of document