PQerrorMessage: suppress trailing new line?

From: Felix Kater <fkater(at)googlemail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PQerrorMessage: suppress trailing new line?
Date: 2007-04-23 14:07:54
Message-ID: 20070423160754.083ed202.fkater@googlemail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

the messages returned by PQerrorMessage() contain a trailing new line.
So, they doesn't nicely integrate into strings formatted by printf.

Is there a way to suppress the trailing new line (except for
alloc/copy to a new string)?

Thank You
Felix

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2007-04-23 14:08:14 Re: dollar-quoting trouble
Previous Message Niederland 2007-04-23 13:51:14 Re: Mass Update