i have a bmp file; i declared some structures

Code:
struct bmp_fileheader

{...}
I read the information:
Code:
struct bmp_fileheader prim;
fread(&prim, sizeof(prim), image);
but now i have to write all of this info into another file. I opened it
file = fopen (image2.bmp, "wb");

butI don t know how to use fwrite in otder to wite all the information stored in my structure. Can someone please help me?