PandA-2024.02
test.c
Go to the documentation of this file.
1 typedef unsigned int size_t;
2 
3 #include "aggregate.h"
4 
5 int less (const void * a, const void * b);
6 
7 void *bsearch(const void *key, const void *base, size_t /* nmemb */ high,
8  size_t size, int (*compar)(const void *, const void *));
9 
10 int test(float * key, float *base, size_t nmemb)
11 {
12  void * res = bsearch(key, base, (sizeof(float) * nmemb) / sizeof(struct aggregate), sizeof(struct aggregate), less);
13  return res ? (res - (void *)base)/sizeof(struct aggregate) : -1;
14 }
void * bsearch(const void *key, const void *base, size_t high, size_t size, int(*compar)(const void *, const void *))
char base
This version is stamped on May 10, 2016.
Definition: nussinov.c:24
void test(float *const pbase, size_t total_elems)
Definition: test.c:14
int key[32]
Definition: aes.h:67
unsigned int size_t
Definition: test.c:1
int compar(const void *v_lhs, const void *v_rhs)
Definition: generate.c:16
int less(void *a, void *b, void *notUsed)
Definition: less.c:4

Generated on Mon Feb 12 2024 13:02:47 for PandA-2024.02 by doxygen 1.8.13