2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 /*****************************************************************************
21 Locate the first occurence of c which is converted to an unsigned
22 char in the first n bytes of the memory pointed to by mem.
25 mem - pointer to memory that is searched for c
26 c - the character to search for
27 n - how many bytes to search through starting at mem
30 pointer to the located byte or null if c was not found
42 ******************************************************************************/
44 /* unsigned char to compare chars > 127 */
45 const unsigned char * ptr
= (unsigned char *)mem
;
49 if (*ptr
== (unsigned char)c
)