diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2003-05-15 00:21:12 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2003-05-15 00:21:12 +0000 |
commit | 620c28a97504f1fc9ad72566693d98f2deb14227 (patch) | |
tree | 321baa719f6c3bccbe879f8c2c288d794b794e7f /winsup/mingw/strncasecmp.c | |
parent | 6c4ce46ce16c69e53b8fdab2a51a653872bfe6d8 (diff) | |
download | cygnal-620c28a97504f1fc9ad72566693d98f2deb14227.tar.gz cygnal-620c28a97504f1fc9ad72566693d98f2deb14227.tar.bz2 cygnal-620c28a97504f1fc9ad72566693d98f2deb14227.zip |
* string_old.c: Remove, splitting into...
* strcasecmp.c: New file.
* strncasecmp.c: New file.
* wscmpi.c : New file.
* ctype_old.c: Remove, splitting into...
* isascii.c: New file.
* iscsym.c: New file.
* iscsymf.c: New file.
* toascii.c: New file.
* Makefile.in (MOLD_OBJS): Adjust.
(SRCDIST_FILES): Adjust.
Diffstat (limited to 'winsup/mingw/strncasecmp.c')
-rw-r--r-- | winsup/mingw/strncasecmp.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/winsup/mingw/strncasecmp.c b/winsup/mingw/strncasecmp.c new file mode 100644 index 000000000..49ead5f68 --- /dev/null +++ b/winsup/mingw/strncasecmp.c @@ -0,0 +1,35 @@ +/* + * strncasecmp.c + * + * Oldnames from ANSI header string.h + * + * Some wrapper functions for those old name functions whose appropriate + * equivalents are not simply underscore prefixed. + * + * Contributors: + * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp> + * + * THIS SOFTWARE IS NOT COPYRIGHTED + * + * This source code is offered for use in the public domain. You may + * use, modify or distribute it freely. + * + * This code is distributed in the hope that it will be useful but + * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY + * DISCLAMED. This includes but is not limited to warrenties of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * $Revision$ + * $Author$ + * $Date$ + * + */ + +#include <string.h> + +int +strncasecmp (const char *sz1, const char *sz2, size_t sizeMaxCompare) +{ + return _strnicmp (sz1, sz2, sizeMaxCompare); +} + |