use: type *x = calloc(1, sizeof(*x)); everywhere to avoid bad types inside the sizeof.
Attach a file by drag & drop or click to upload