rem: set_attr_type(p, TZURL_ATTR, buf_end, error);
context: inline int encode_time_switch_attr(xmlNodePtr  node, unsigned char *node_ptr,														unsigned char *buf_end){	xmlAttrPtr     attr;	unsigned char  *p, *p_orig;	unsigned char  *nr_attr;	str            val;	nr_attr = &(NR_OF_ATTR(node_ptr));	*nr_attr = 0;	p = p_orig = ATTR_PTR(node_ptr);	FOR_ALL_ATTR(node,attr) {		(*nr_attr)++;		switch(attr->name[2]) {			case 'I': case 'i':				set_attr_type(p, TZID_ATTR, buf_end, error);				break;			case 'U': case 'u':				set_attr_type(p, TZURL_ATTR, buf_end, error);				break;			default:				LOG(L_ERR,"ERROR:cpl_c:encode_time_switch_attr: unknown "					"attribute <%s>\n",attr->name);				goto error;		}		/* attribute's encoded value */		get_attr_val( attr->name , val, error);		val.len++; /* grab also the \0 */		append_str_attr(p,val, buf_end, error);	}	return p-p_orig;error:	return -1;}