Ignore:
Timestamp:
Oct 14, 1999, 3:19:22 AM (26 years ago)
Author:
bird
Message:

Changes during Pe2Lx rewrite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/stricmp.c

    r847 r1271  
    1 /* $Id: stricmp.c,v 1.1 1999-09-06 02:20:02 bird Exp $
     1/* $Id: stricmp.c,v 1.2 1999-10-14 01:19:21 bird Exp $
    22 *
    33 * stricmp - Case insensitive string compare.
     
    1818*******************************************************************************/
    1919#include <string.h>
    20 
     20#pragma info(nogen, noext, nouni)
    2121
    2222/**
    23  * strcmpi - case insensitive string compare. Not i subsys library.
     23 * stricmp - case insensitive string compare.
     24 * Not i subsys library.
    2425 * @param   psz1   String 1
    25  * @parma   psz2   String 2
     26 * @param   psz2   String 2
    2627 * @return  0 if equal
    2728 *          != 0 if not equal
     
    3738}
    3839
     40
     41
     42/**
     43 * strnicmp - case insensitive string compare for up to cch chars of the strings.
     44 * Not i subsys library.
     45 * @param   psz1   String 1
     46 * @param   psz2   String 2
     47 * @return  0 if equal
     48 *          != 0 if not equal
     49 */
     50int strnicmp(const char *psz1, const char *psz2, size_t cch)
     51{
     52    int iRet;
     53
     54    while (cch > 0 && (iRet = upcase(*psz1) - upcase(*psz2)) == 0 && *psz1 != '\0')
     55        psz1++, psz2++, cch--;
     56
     57    return iRet;
     58}
     59
Note: See TracChangeset for help on using the changeset viewer.