2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 #include <aros/macros.h>
11 /*****************************************************************************
23 Searches for a character in a string.
26 str - Search this string
27 c - Look for this character
30 A pointer to the first occurence of c in str or NULL if c is not
38 strcpy (buffer, "Hello ");
40 // This returns a pointer to the first l in buffer.
53 ******************************************************************************/
57 /* those casts are needed to compare chars > 127 */
58 if ((unsigned char)*str
== (unsigned char)c
)
65 AROS_MAKE_ALIAS(strchr
, index
);