mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 09:24:08 +03:00
implemented strchr
date 2005.02.17.18.45.00; author rmoore1; state Exp;
This commit is contained in:
parent
d5b48b76fb
commit
43d90caac3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user