nn::socket::InetAtoN Function
s32 InetAtoN(
const char * cp,
InAddr * inp
);
| 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. |
| Value | Description |
|---|---|
| 1 | Process was successful. |
| 0 | The character string given by cp cannot be parsed according to dot-decimal notation. |
Converts an IPv4 host address given in dot-decimal notation to numeric format.
Can be used even if Initialize has not been called.
CONFIDENTIAL