int TGAWriteHeader(TGA*tga);
int TGAWriteHeader
pointer to valid TGA structure
It returns TGA_OK on success.
Use TGAWriteImage() instead.