repo.or.cz
/
splint-patched.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Don't try calling lsl when file is missing.
[splint-patched.git]
/
test
/
strchr
/
strchr.c
blob
1d97c231c389fd31cc6992875dd2a20bab60f8ec
1
2
void
func
() {
3
char
*
c
;
4
c
=
strchr
(
"dfdfedfd"
,
'e'
);
5
*
c
=
'd'
;
/* modification of observer, possibly null */
6
}
7
8
void
fixline
(
char
*
line
)
9
{
10
char
*
p
;
11
12
if
( (
p
=
strchr
(
line
,
'
\n
'
)) )
13
{
14
*
p
=
'\0'
;
15
}
16
17
}