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@gmx.net http://funkturm.homeip.net/~peter