/*
 * =====================================================================================
 *         Name:  Mac Howe, Pmhowe@clemson.edu
 *         Date:  11/15/2022 
 *  Lab Section:  7  
 *         Lab#:  11
 *  Description:  writes the header from memory to stdout with half the width and height
 *
 *
 * =====================================================================================
 */

#include "defs.h"

void writeHeader(header_t head, FILE *out){
	int w = head.width/2;
   int h = head.height/2;
	fprintf(out, "%s\n%d %d %d\n",
   head.type, w, h, head.maxColor);
}

