Re: C-Language Functions: VarChar and Text arguments - Mailing list pgsql-novice

From Jasen Betts
Subject Re: C-Language Functions: VarChar and Text arguments
Date
Msg-id hpk7tm$dsf$2@reversiblemaps.ath.cx
Whole thread Raw
In response to C-Language Functions: VarChar and Text arguments  (Carel Combrink <s25291930@tuks.co.za>)
List pgsql-novice
On 2010-04-06, Carel Combrink <s25291930@tuks.co.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);



pgsql-novice by date:

Previous
From: Tim Landscheidt
Date:
Subject: Re: How to find object dependencies in PG 8.4
Next
From: Jasen Betts
Date:
Subject: Re: Read only postgres server