_mdns_append_string() function
appends single string to a packet, incrementing the index
Syntax
static inline uint8_t _mdns_append_string(uint8_t *packet,
uint16_t *index,
const char *string);
Arguments
index
offset in the packet
string
the string to append
Return value
length of added data: 0 on error or length of the string + 1 on success