1 Converting Error Codes to Messages
2 ==================================
7 #include <libmemcached/memcached.h>
8 Compile and link with -lmemcached
10 .. function:: const char *memcached_strerror(memcached_st *ptr, memcached_return_t rc)
12 :param ptr: pointer to initialized `memcached_st` struct
13 :param rc: `memcached_return_t` value to query the string representation for
14 :returns: the string representation of `rc`
19 `memcached_strerror` takes a `memcached_return_t` value and returns a string
22 This string must not be modified by the application.
24 `memcached_return_t` values are returned from nearly all libmemcached(3)
27 `memcached_return_t` values are of an enum type so that you can set up responses
28 with switch/case and know that you are capturing all possible return values.
33 `memcached_strerror` returns a string describing a `memcached_return_t` value.
40 :manpage:`memcached(1)`
41 :manpage:`libmemcached(3)`
42 :manpage:`memcached_return_t`
46 * :manpage:`memcached(1)`
47 * :doc:`../libmemcached`
48 * :doc:`memcached_return_t`