Re: empty octet string

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi,

why not just: Octsr *my_empty = octstr_create("");

On Wednesday 10 September 2003 11:33, Yury Mikhienko wrote:
> 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 / Mit besten Grüßen aus Düsseldorf

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Vogelsanger Weg 80
40470 Düsseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: a.malysh at centrium.de
web: www.centrium.de
msn: olek2002 at hotmail.com
icq: 98063111
___________________________________________

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
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.