repo.or.cz
/
linux-2.6
/
next.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kvm tools, setup: Create private directory
[linux-2.6/next.git]
/
tools
/
kvm
/
util
/
strbuf.c
blob
ec77ab1ec91d17a2c5c90e10916bb4fff0741df5
1
2
/* user defined headers */
3
#include <kvm/strbuf.h>
4
5
int
prefixcmp
(
const char
*
str
,
const char
*
prefix
)
6
{
7
for
(; ;
str
++,
prefix
++) {
8
if
(!*
prefix
)
9
return
0
;
10
else if
(*
str
!= *
prefix
)
11
return
(
unsigned char
)*
prefix
- (
unsigned char
)*
str
;
12
}
13
}