implemented strchr

date	2005.02.17.18.45.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:04:02 +00:00
parent d5b48b76fb
commit 43d90caac3

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: cmclib - Local implementation of C library functions
* $Revision: 1.53 $
* $Revision: 1.55 $
*
*****************************************************************************/
@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
* Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
* Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
* All rights reserved.
*
* 2. License
@ -276,6 +276,38 @@ AcpiUtStrcmp (
}
/*******************************************************************************
*
* FUNCTION: strchr
*
* PARAMETERS: String - Search string
* ch - character to search for
*
* RETURN: Ptr to char or NULL if not found
*
* DESCRIPTION: Search a string for a character
*
******************************************************************************/
char *
AcpiUtStrchr (
const char *String,
int ch)
{
for ( ; (*String); String++)
{
if ((*String) == (char) ch)
{
return ((char *) String);
}
}
return (NULL);
}
/*******************************************************************************
*
* FUNCTION: memcmp