nn::socket::InetAtoN Function

Syntax

s32 InetAtoN(
     const char * cp,
     InAddr * inp
);

Arguments

Name Description
in cp Specifies a pointer to a string representing the IPv4 address in dot-decimal notation. The string must be NULL-terminated.
in inp Specifies a pointer to the InAddr structure used to get addresses in numeric format.

Return Values



Value Description
1 Process was successful.
0 The character string given by cp cannot be parsed according to dot-decimal notation.

Description

Converts an IPv4 host address given in dot-decimal notation to numeric format.

Can be used even if Initialize has not been called.

See Also

InetNtoA, InetPtoN

Revision History

2010/06/14
Initial version.

CONFIDENTIAL