DOKK / manpages / debian 12 / libmemcached-dev / memcached_last_error_message.3.en
MEMCACHED_LAST_ERROR_MESSAGE(3) libmemcached-awesome MEMCACHED_LAST_ERROR_MESSAGE(3)

memcached_last_error_message - libmemcached Documentation

#include <libmemcached/memcached.h>
Compile and link with -lmemcached

ptr -- pointer to an initialized memcached_st struct
memcached_return_t indicating success of last operation


ptr -- pointer to an initialized memcached_st struct
message describing the status of last operation


ptr -- pointer to an initialized memcached_st struct
errno(3) (if any) of last operation


Retrieve error codes and messages.

memcached_last_error() returns the last error code.

memcached_last_error_message() returns the last error message. If this error came from a specific server, its hostname and port will be provided in the error message. Any error message will be returned as 'const char *' which does not need to be de-allocated. NULL will be returned if no error has occurred.

memcached_last_error_errno() returns any last local error code obtained from errno(3).

memcached(1) errno(3) libmemcached(3) memcached_strerror(3)

March 6, 2023 1.1