All the methods related to string conversion.
◆ STR_AddressToString()
ITALA_API_C ItalaError STR_AddressToString |
( |
uint32_t |
address, |
|
|
char * |
string, |
|
|
size_t * |
pSize |
|
) |
| |
Converts a four-byte address to a readable string representation in dotted-decimal format. This function is useful for displaying IP addresses, gateways and subnet masks as well.
- Parameters
-
[in] | address | The address to convert to string format. |
[out] | string | Array of char, rappresenting the string converted. |
[in,out] | pSize | Maximum element of the array in input, number of element filled in output. |
- Returns
- ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.
◆ STR_MacAddressToString()
ITALA_API_C ItalaError STR_MacAddressToString |
( |
uint64_t |
address, |
|
|
char * |
string, |
|
|
size_t * |
pSize |
|
) |
| |
Converts a MAC address to a readable string representation in colon-heaxadecimal format. This function is useful for displaying MAC addresses.
- Parameters
-
[in] | address | The address to convert to string format. |
[out] | string | Array of char, rappresenting the string converted. |
[in,out] | pSize | Maximum element of the array in input, number of element filled in output. |
- Returns
- ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.
◆ STR_AccessStatusToString()
Converts an access status value to a readable string representation.
- Parameters
-
[in] | status | The address to convert to string format. |
[out] | string | Array of char, rappresenting the string converted. |
[in,out] | pSize | Maximum element of the array in input, number of element filled in output. |
- Returns
- ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.