I see quite a few things wrong with that code. Here is an example that might help you.

#include <stdio.h>

struct zigzag {
int a;
char b[20];
};

int writeBinary(const struct zigzag);