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
/
manual
/
rstring.c
blob
4ca78cd34bbb38824a8103df8c45128e8882e21e
1
# include
"rstring.h"
2
3
static
rstring
rstring_ref
(
rstring r
)
4
{
5
r
->
refs
++;
6
return
r
;
7
}
8
9
rstring
rstring_first
(
rstring r1
,
rstring r2
)
10
{
11
if
(
strcmp
(
r1
->
contents
,
r2
->
contents
) <
0
)
12
{
13
return
r1
;
14
}
15
else
16
{
17
return
rstring_ref
(
r2
);
18
}
19
}