Lines Matching defs:key
329 static void *linear_search(record_t key, record_t * base, size_t size)
335 if (*p == key)
361 * newly allocated buffer, randomly select a search key, look it up,
371 record_t key, *found;
399 key = rand_num(copy_size / record_size, &state);
402 printf("Search key %zu, copy size %zu\n", key,
405 found = linear_search(key, copy, copy_size);
408 bsearch(&key, copy, copy_size / record_size,
413 fprintf(stderr, "Couldn't find key %zd\n", key);