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