kvm tools, setup: Create private directory
[linux-2.6/next.git] / tools / kvm / util / strbuf.c
blobec77ab1ec91d17a2c5c90e10916bb4fff0741df5
2 /* user defined headers */
3 #include <kvm/strbuf.h>
5 int prefixcmp(const char *str, const char *prefix)
7 for (; ; str++, prefix++) {
8 if (!*prefix)
9 return 0;
10 else if (*str != *prefix)
11 return (unsigned char)*prefix - (unsigned char)*str;