Skip site navigation (1) Skip section navigation (2)

Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Date: 2012-02-18 20:12:21
Message-ID: 4F400625.5000700@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-committers

On 02/18/2012 02:38 PM, Michael Meskes wrote:
> On Sat, Feb 18, 2012 at 12:40:43PM -0500, Andrew Dunstan wrote:
>>> Which one of these functions is available on MinGW?
> So what is the system on pitta? It says gcc, but doesn't seem to know strtok_r.
>
> I'm tempted to remove strtok and program the bits and pieces I need myself.
>


Sorry, it looks like I was mistaken, and neither of these is available 
on mingw. Could you just use plain strtok(), possibly on a copy of the 
string?

cheers

andrew

In response to

Responses

pgsql-committers by date

Next:From: Tom LaneDate: 2012-02-18 23:08:39
Subject: pgsql: Update expected/collate.linux.utf8.out for recent plpgsqlchange
Previous:From: Michael MeskesDate: 2012-02-18 19:38:35
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group