This function converts a string of IP addresses to a number.

Syntax

unsigned int nmi_inet_addr(
  char *pcIpAddr
);

Parameters

pcIpAddr
[in] Specify the IP address as an ASCII code string.
Separate the numbers with (periods).
Example:"123.45.67.89"

Return value

Returns the IP address if the function succeeds, 0 otherwise.

Remarks

Converts the IP address string to a number.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Sample

Last updated: 2020/11/26