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

  1. @node strncasecmp, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. int strncasecmp(const char *s1, const char *s2, size_t max);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function compares @var{s1} and @var{s2}, ignoring case, up to a
  13. maximum of @var{max} characters. 
  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 ASCII collating sequense, else a negative number. 
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. if (strncasecmp(foo, "-i", 2) == 0)
  24.   do_include();
  25. @end example
  26.  
  27.