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

Re: furiously yours

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Rony Khoury <rkrk(at)hotmail(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: furiously yours
Date: 2001-06-09 23:09:22
Message-ID: Pine.LNX.4.30.0106100108070.778-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-bugs
Rony Khoury writes:

>   for(i=0;i<3;i++) {
>     for (j=0;j<3;j++) {
>       if (strcmp(tparr[i],tparr[j]) == -1) {
>         sprintf(tpstring,"%s",tparr[i]);
>         sprintf(tparr[i],"%s",tparr[j]);
>         sprintf(tparr[j],"%s",tpstring);
>       }
>     }
>   }

You need to use strcoll() to get locale-dependent sorting. -- Or not, if
you don't.

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net   http://funkturm.homeip.net/~peter


In response to

pgsql-bugs by date

Next:From: Stephan SzaboDate: 2001-06-09 23:10:19
Subject: Re: furiously yours
Previous:From: Tom LaneDate: 2001-06-09 22:21:05
Subject: Re: furiously yours

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