Re: const correctness

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Peter Geoghegan <peter@2ndquadrant.com>, Thomas Munro <munro@ip9.org>, pgsql-hackers@postgresql.org
Date: 2011-11-10T20:07:02Z
Lists: pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On ons, 2011-11-09 at 10:49 -0500, Tom Lane wrote:
>> Now admittedly you can hack it, in the same
>> spirit as the C library functions that are declared to take const
>> pointers and return non-const pointers to the very same data 

> Which C library functions do that?

strchr() is the classic example, but I believe there are some others.

			regards, tom lane