1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <stdlib.h> #define DATA_SIZE 1250 // 1500 fails char *generateData() { char *ret = malloc(65536*2); char *curr = ret; for (int i = 0; i < 256; i++) { for (int j = 0; j < 256; j++) { *curr = i; curr++; *curr = j; curr++; } } return ret; }