repo.or.cz
/
Samba
/
gebeck_regimport.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s3:smbd: also log the "offline" flag when debugging the dos-mode
[Samba/gebeck_regimport.git]
/
lib
/
ccan
/
str
/
test
/
compile_fail-strchr.c
blob
74a7314d06b7807eb22c1f3865ac9586c7b83d0d
1
#define CCAN_STR_DEBUG 1
2
#include <ccan/str/str.h>
3
4
int
main
(
int
argc
,
char
*
argv
[])
5
{
6
#ifdef FAIL
7
#if !HAVE_TYPEOF
8
#error We need typeof to check strstr.
9
#endif
10
#else
11
const
12
#endif
13
char
*
ret
;
14
const char
*
str
=
"hello"
;
15
16
ret
=
strchr
(
str
,
'l'
);
17
return
ret
?
0
:
1
;
18
}