1 ================================================
2 Coverting Errors, memcached_return_t, to strings
3 ================================================
6 .. index:: object: memcached_st
12 #include <libmemcached/memcached.h>
14 .. c:function:: const char * memcached_strerror (memcached_st *ptr, memcached_return_t rc)
16 Compile and link with -lmemcached
24 :c:func:`memcached_strerror` takes a :c:type:`memcached_return_t` value and returns a string describing the error.
26 This string must not be modified by the application.
28 :c:type:`memcached_return_t` values are returned from nearly all libmemcached(3) functions.
30 :c:type:`memcached_return_t` values are of an enum type so that you can set up responses with switch/case and know that you are capturing all possible return values.
38 :c:func:`memcached_strerror` returns a string describing a :c:type:`memcached_return_t` value.
46 To find out more information please check:
47 `http://libmemcached.org/ <http://libmemcached.org/>`_
56 :manpage:`memcached(1)` :manpage:`libmemcached(3)`