Re: StringInfo misc. issues

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: NikhilS <nikkhils(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: StringInfo misc. issues
Date: 2007-08-29 14:56:59
Message-ID: 46D5893B.3000206@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

NikhilS wrote:
>
>
> I also found the absence of a function like resetStringInfo() a bit
> puzzling. A found a lot of places where the code was resetting the
> "len" field to 0 and assigning '\0' to the data field to reset the
> variable. This seems to be the only missing API which will be needed
> while working with the StringInfo type.

er, what? stringinfo.h has:

/*------------------------
* resetStringInfo
* Clears the current content of the StringInfo, if any. The
* StringInfo remains valid.
*/
extern void resetStringInfo(StringInfo str);

cheers

andrew

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-08-29 15:11:06 Re: StringInfo misc. issues
Previous Message Tom Lane 2007-08-29 14:46:10 Re: reviving dead buildfarm animals