beautypg.com

Eth_string_to_num – Zilog EZ80F91GA User Manual

Page 114

background image

ZGATE API Reference

UM024502-1012

102

ZGATE Embedded Security Development Kit
User Manual

eth_string_to_num

Function Prototype

UINT8 eth_string_to_num( char *buff, ether_addr_t eth_addr );

Parameters

buff

A pointer to the Ethernet address string.

ether_addr

The six-byte array into which the numeric representation of the
Ethernet address will be stored.

Return Value

TRUE

Ethernet address was successfully converted.

FALSE

buff

contains an invalid Ethernet address string.

Description

This function converts an Ethernet address in presentation (printable string) format into
numeric format.