clients/execute.cc
/**
 * Callback function to count the number of results
 */
Callback function to count the number of results
Callback function to count the number of results
static memcached_return_t callback_counter(const memcached_st *ptr,
                                           memcached_result_st *result,
                                           void *context)
{
  (void)ptr;
  (void)result;
  unsigned int *counter= (unsigned int *)context;
  *counter= *counter + 1;
  return MEMCACHED_SUCCESS;
}
static memcached_return_t callback_counter ( const memcached_st * ptr , memcached_result_st * result , void * context ) { ( void ) ptr ; ( void ) result ; unsigned int * counter = ( unsigned int * ) context ; * counter = * counter + 1 ; return MEMCACHED_SUCCESS ; }
Callback function to count the number of results
Callback function to count the number of results