home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / string / strnicmp.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  1.2 KB  |  54 lines

  1. @node strnicmp, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. int strnicmp(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 (strnicmp(foo, "-i", 2) == 0)
  24.   do_include();
  25. @end example
  26.  
  27. @c -----------------------------------------------------------------
  28. @node strncase, string
  29. @subheading Syntax
  30.  
  31. @example
  32. #include <string.h>
  33.  
  34. int strncase(const char *s1, const char *s2, size_t max);
  35. @end example
  36.  
  37. @subheading Description
  38.  
  39. This function compares @var{s1} and @var{s2}, ignoring case, up to a
  40. maximum of @var{max} characters. 
  41.  
  42. @subheading Return Value
  43.  
  44. Zero if the strings are equal, a positive number if @var{s1} comes after
  45. @var{s2} in the ASCII collating sequense, else a negative number. 
  46.  
  47. @subheading Example
  48.  
  49. @example
  50. if (strncase(foo, "-i", 2) == 0)
  51.   do_include();
  52. @end example
  53.  
  54.