empty octet string

Yury Mikhienko <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Mobicom-Kavkaz
Message-ID <[email protected]>
Hi, developers!

I need to create an empty octstr, but do not see the necessary function (in CVS kannel) :((
What is the meaning in inserting the following function into the octstr.c
Octstr *octstr_create_empty()
{
 Octstr *ostr;
 
 ostr = gw_malloc(sizeof(*ostr));
 ostr->len = 0;
 ostr->size = 0;
 ostr->data = NULL;
 
 ostr->immutable = 0;
 seems_valid(ostr);

 return ostr;
}


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.