aboutsummaryrefslogtreecommitdiff
path: root/tests/websockets_bigdata.h
blob: 17149ad6f0f99aa91b57396b7e20c42582351a52 (plain)
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 (256*256*2)
// 1500 fails

char *generateData() {
  char *ret = malloc(256*256*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;
}