projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Merge in code changes for all of the new parser.
[awesomized/libmemcached]
/
libmemcached
/
string.c
diff --git
a/libmemcached/string.c
b/libmemcached/string.c
index 34597067b157edcbb818100da12a79061bbbd5d0..10a295814ddb9d8e1fd21d5218854041c0cd3016 100644
(file)
--- a/
libmemcached/string.c
+++ b/
libmemcached/string.c
@@
-212,3
+212,12
@@
void memcached_string_set_length(memcached_string_st *self, size_t length)
{
self->end= self->string + length;
}
+
+memcached_string_t memcached_string_make(const char *str, size_t length)
+{
+ memcached_string_t tmp;
+ tmp.c_str= str;
+ tmp.size= length;
+
+ return tmp;
+}