rem: int lpidf_add_address(str* _b, int* _l, str* _addr, lpidf_status_t _st)
add: int lpidf_add_address(str* _b, int _l, str* _addr, lpidf_status_t _st)
context: int lpidf_add_address(str* _b, int* _l, str* _addr, lpidf_status_t _st){	str s;	int len;	switch(_st) {	case LPIDF_ST_OPEN:   s.s = Q_OPEN; s.len = Q_OPEN_L;     break;	case LPIDF_ST_CLOSED: s.s = Q_CLOSED; s.len = Q_CLOSED_L; break;	}	len = CONTACT_START_L + _addr->len + CONTACT_MIDDLE_L + s.len + CRLF_L;	if (*_l < len) {		paerrno = PA_SMALL_BUFFER;		LOG(L_ERR, "lpidf_add_address(): Buffer too small\n");		*_l = len - *_l; 		return -1;	}		str_append(_b, CONTACT_START, CONTACT_START_L);	str_append(_b, _addr->s, _addr->len);	str_append(_b, CONTACT_MIDDLE, CONTACT_MIDDLE_L);	str_append(_b, s.s, s.len);	str_append(_b, CRLF, CRLF_L);	return 0;}