home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / string / strcoll.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  531 b   |  27 lines

  1. @node strcoll, locale
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. int strcoll(const char *s1, const char *s2);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function compares @var{s1} and @var{s2}, using the collating
  13. sequences from the current locale. 
  14.  
  15. @subheading Return Value
  16.  
  17. Zero if the strings are equal, a positive number if @var{s1} comes after
  18. @var{s2} in the collating sequense, else a negative number. 
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. while (strcoll(var, list[i]) < 0)
  24.   i++;
  25. @end example
  26.  
  27.