mirror of
https://github.com/samba-team/samba.git
synced 2025-06-24 15:17:06 +03:00
Imported from git://git.ozlabs.org/~ccan/ccan init-1161-g661d41f Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 lines
274 B
C
19 lines
274 B
C
#define CCAN_STR_DEBUG 1
|
|
#include <ccan/str/str.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#ifdef FAIL
|
|
#if !HAVE_TYPEOF
|
|
#error We need typeof to check strstr.
|
|
#endif
|
|
#else
|
|
const
|
|
#endif
|
|
char *ret;
|
|
const char *str = "hello";
|
|
|
|
ret = strrchr(str, 'l');
|
|
return ret ? 0 : 1;
|
|
}
|