Please enable JavaScript to view this site.

Conversion from IP address represented in an integer to a string.

Syntax

i32 ipaddr_to_str (u32 addr, string sAddr)

addr

Parameter containing the address to be converted

sAddr

Parameter in which the function writes the converted address

Result

Returns:

Value

Meaning

<> 0

Operation successfully completed

0

addr is not a valid address

Validity

Rule, Task

Note

Netmask and gateway are not allowed

The string has the format: "xxx.xxx.xxx.xxx."

The integer is of type u32 with format: u32 addr = 0xaabbccdd; aa, bb, cc and dd represent the 4 components of the IP address expressed in hexadecimal format.

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC