2011-09-21 19:51:09 +02:00
|
|
|
/* radare - LGPL - Copyright 2009-2011 pancake<nopcode.org> */
|
2010-01-18 17:33:33 +01:00
|
|
|
#include "r_util.h"
|
|
|
|
|
2011-10-07 01:16:45 +02:00
|
|
|
int test_flist () {
|
2011-09-21 19:51:09 +02:00
|
|
|
int i;
|
2010-02-12 11:45:22 +01:00
|
|
|
void **it = r_flist_new (3);
|
2010-02-08 00:50:59 +01:00
|
|
|
char *pos = NULL;
|
2010-01-18 17:33:33 +01:00
|
|
|
|
2011-09-21 19:51:09 +02:00
|
|
|
for (i=0;i<9999;i++) {
|
|
|
|
r_flist_set (it, i, "foo");
|
|
|
|
}
|
2010-01-18 17:33:33 +01:00
|
|
|
|
2010-02-12 11:45:22 +01:00
|
|
|
r_flist_delete (it, 1);
|
2010-01-18 17:33:33 +01:00
|
|
|
|
2011-09-21 19:51:09 +02:00
|
|
|
r_flist_foreach (it, pos) {
|
2010-02-08 00:50:59 +01:00
|
|
|
printf("%s\n", pos);
|
2010-01-18 17:33:33 +01:00
|
|
|
}
|
|
|
|
|
2010-02-12 11:45:22 +01:00
|
|
|
r_flist_free(it);
|
2010-01-18 17:33:33 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2011-09-21 19:51:09 +02:00
|
|
|
|
|
|
|
int main() {
|
2011-10-07 01:16:45 +02:00
|
|
|
return test_flist();
|
2011-09-21 19:51:09 +02:00
|
|
|
}
|
|
|
|
|