| 1 |
/* |
| 2 |
* Copyright (C) 2002 Manuel Novoa III |
| 3 |
* Copyright (C) 2000-2005 Erik Andersen <[email protected]> |
| 4 |
* |
| 5 |
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. |
| 6 |
*/ |
| 7 |
|
| 8 |
#include <config.h> |
| 9 |
|
| 10 |
#ifndef HAVE_RAWMEMCHR |
| 11 |
|
| 12 |
#include "libfakechroot.h" |
| 13 |
|
| 14 |
LOCAL void *rawmemchr(const void *s, int c) |
| 15 |
{ |
| 16 |
register const unsigned char *r = s; |
| 17 |
|
| 18 |
while (*r != ((unsigned char)c)) ++r; |
| 19 |
|
| 20 |
return (void *) r; /* silence the warning */ |
| 21 |
} |
| 22 |
|
| 23 |
#else |
| 24 |
typedef int empty_translation_unit; |
| 25 |
#endif |