2.6.3 - NumberToIP | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver

Wednesday April 8th, 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 55/56 products in stock. More details.
Supply Chain: Some disruptions. More details.

2.6.3 - NumberToIP

Takes an integer representing an IPv4 address and outputs the corresponding decimal-dot IPv4 address as a null-terminated string.


                      unsigned int Number, 
                      char * IPv4String)


Number [in]
A number representing an IPv4 address.
IPv4String [out]
A character array which will be updated to contain the null-terminated string representation of an IPv4 address. Must be allocated to size LJM_IPv4_STRING_SIZE.


LJM errorcodes or 0 for no error.


Use this function to get a more human-readable interpretation of an IP address.


[C/C++] Convert a number into an IPv4 string.

int LJMError;
char IPv4String[16];
LJMError = LJM_NumberToIP(3232235983, IPv4String);
printf ("%s \n", IPv4String);
// Prints ""