~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to lib/memcached_key.c

  • Committer: patg@patg.net
  • Date: 2008-05-05 03:32:10 UTC
  • mfrom: (317.1.71)
  • Revision ID: patg@patg.net-20080505033210-yxv0us02t8lb44dy
Merge 477:75823cad36b7 with -r 476

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "common.h"
2
 
 
3
 
memcached_return memcachd_key_test(char **keys, size_t *key_length, 
4
 
                                   unsigned int number_of_keys)
5
 
{
6
 
  int x;
7
 
 
8
 
  for (x= 0; x < number_of_keys; x++)
9
 
  {
10
 
    int y;
11
 
    for (y= 0; y < key_length[x]; y++)
12
 
    {
13
 
      if ((isgraph(keys[x][y])) == 0)
14
 
        return MEMCACHED_BAD_KEY_PROVIDED;
15
 
    }
16
 
  }
17
 
 
18
 
  return MEMCACHED_SUCCESS;
19
 
}
20