append_one_txt_record_entry() function
appends one TXT record ("key=value" or "key")
Arguments
index
offset in the packet
Return value
length of added data: length of the added txt value + 1 on success 0 if data won't fit the packet -1 if invalid TXT entry