sl_remove_attribute

Purpose

Removes an attribute associated to a specified tag.

Library

The signaling interface library (libsl.a).

C syntax

#include <sltag.h>
...
SL_RET_CODE 	       sl_remove_attribute (
    char *               buffer,
    char *               tag_attr
);

Description

Searches buffer for the tag label in tag_attr, then searches within the deduced tag string for the attribute label in tag_attr. If found, the attribute substring is removed from buffer.

Parameters

buffer
A string containing one or more tag strings.
tag_attr
A string containing a tag label and an attribute label in the format: tag.attribute. For example, CLNG.PRESENT.

Return values

SLRC_OK
Successful.
SLRC_NOT_FOUND
Could not find tag.
SLRC_INVALID_TAG
The tag string containing tag is syntactically incorrect, tag value was not changed.
SLRC_NULL_PTR
buffer or tag_attr is a null pointer.

Related information