delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/28/11:35:24

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strcoll()
Date: Sat, 27 Dec 1997 13:15:11 -0800
Organization: Alcyone Systems
Lines: 21
Message-ID: <34A56FDF.5C3576E3@alcyone.com>
References: <bWLoegW7sFse-pn2-GFp6hshdXtXk AT portD08 DOT Generation DOT NET> <01bd12e2$b1d6dfc0$4030c7cd AT mike-home>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mike Evanoff wrote:

> Yes - I am confused myself.  My interpretation was that it would look
< for a
> match between s1 and s2, where the function prototype is:
> 
>         int strcoll(const char *s1, const char *s2);
> 
> and return 0 if s1=s2, >0 or <0 depending on s1>s2 or visa versa....

Correct.  strcoll does the exactly analogous thing that strcmp does,
except strcoll is sensitive to the current "locale."  strcmp merely does
an ASCII compare.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
                       "Life may be / the product of imperfections."
                                   / (Marclo Gleiser)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019