Are "text" strings 0 terminated internally?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Are "text" strings 0 terminated internally?
Date: 2002-08-24 15:34:22
Message-ID: 20020824153422.GA18187@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I want to make a function that converts text to cube and the "obvious"
thing to do is to call cube_in with the pointer from the text data.
However this depends on the text string being 0 terminated. I am very
sure that this is the case, but since I want to submit this change back
as a patch to contrib/cube I was hoping someone could make me 100%
sure this is correct. Thanks.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2002-08-24 17:53:22 Re: [GENERAL] PostgreSQL 7.2.2: Security Release
Previous Message Vince Vielhaber 2002-08-24 14:51:30 Re: [GENERAL] PostgreSQL 7.2.2: Security Release