home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / mingw / string_old.c < prev   
Encoding:
C/C++ Source or Header  |  1999-07-30  |  1.1 KB  |  48 lines

  1. /*
  2.  * string_old.c
  3.  *
  4.  * Oldnames from ANSI header string.h
  5.  *
  6.  * Some wrapper functions for those old name functions whose appropriate
  7.  * equivalents are not simply underscore prefixed.
  8.  *
  9.  * Contributors:
  10.  *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
  11.  *
  12.  *  THIS SOFTWARE IS NOT COPYRIGHTED
  13.  *
  14.  *  This source code is offered for use in the public domain. You may
  15.  *  use, modify or distribute it freely.
  16.  *
  17.  *  This code is distributed in the hope that it will be useful but
  18.  *  WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY
  19.  *  DISCLAMED. This includes but is not limited to warrenties of
  20.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21.  *
  22.  * $Revision: 1.1.1.4 $
  23.  * $Author: khan $
  24.  * $Date: 1998/02/04 20:14:22 $
  25.  *
  26.  */
  27.  
  28. #include <string.h>
  29.  
  30. int
  31. strcasecmp (const char *sz1, const char *sz2)
  32. {
  33.   return _stricmp (sz1, sz2);
  34. }
  35.  
  36. int
  37. strncasecmp (const char *sz1, const char *sz2, size_t sizeMaxCompare)
  38. {
  39.   return _strnicmp (sz1, sz2, sizeMaxCompare);
  40. }
  41.  
  42. int
  43. wcscmpi (const wchar_t * ws1, const wchar_t * ws2)
  44. {
  45.   return _wcsicmp (ws1, ws2);
  46. }
  47.  
  48.