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:
|
||||||
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.
Example of use:
|