memcached_strerror(3)

memcached_strerror3

Libmemcached documentation

Usage

#include <libmemcached/memcached.h>

Compile and link with -lmemcached

const char *memcached_strerror(memcached_st <#_CPPv412memcached_st> *ptr, memcached_return_t <#_CPPv418memcached_return_t> rc)
Parameters
•

ptr -- pointer to initialized memcached_st <#_CPPv412memcached_st> struct

•

rc -- memcached_return_t <#_CPPv418memcached_return_t> value to query the string representation for

Returns

the string representation of rc

Overview

memcached_strerror() takes a memcached_return_t <#_CPPv418memcached_return_t> value and returns a string describing the error.

This string must not be modified by the application.

memcached_return_t <#_CPPv418memcached_return_t> values are returned from nearly all libmemcached(3) functions.

memcached_return_t <#_CPPv418memcached_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.

Return value

memcached_strerror() returns a string describing a memcached_return_t <#_CPPv418memcached_return_t> value.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8–11
  4. 12
  5. 13
  6. Arch

From libmemcached-awesome 1.1.4-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.