Re: C-Language Functions: VarChar and Text arguments

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: C-Language Functions: VarChar and Text arguments
Date: 2010-04-08 09:33:42
Message-ID: hpk7tm$dsf$2@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 2010-04-06, Carel Combrink <s25291930(at)tuks(dot)co(dot)za> wrote:

> Isn't there an easier way to use the data (text*) in a printf() type
> way, I need to construct a SQL query from the input data and I am
> using the printf() notation and %s only works on zero terminated
> strings.

???

printf("%.*s",length,char_pointer);

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Jasen Betts 2010-04-08 09:42:36 Re: Read only postgres server
Previous Message Tim Landscheidt 2010-04-07 10:34:57 Re: How to find object dependencies in PG 8.4