STRING_TO_IPADDR

STRING into IP address

This function converts a STRING in IP address format into a value of the data type DWORD.

Thereby the attached string is first converted into a value of the data type STRING[32]. Finally this is converted into a value of the data type DWORD via a sub-programm of approx. 330 steps that is also used in the functions STRING_TO_IPADDR and STRING_TO_ETLANADDR.

Parameters

Input

Unnamed input (STRING)
Input data type

Output

Unnamed output (DWORD)
Conversion result

Remarks

Permissible format: '[Space]Octet1.Octet2.Octet3.Octet4[Space]', e.g.: ' [192.168.206.4] '

Permissible characters Octets 1-4:

Decimal numbers "0“-"9“, maximal 3 positions, with or without leading zeros in the range 0-255

Space: All characters except for decimal numbers

Example

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline