#include <stdio.h>
#include <string.h>
+/* common */
+#include "attrib.h"
+
/* sp65 */
+#include "attr.h"
#include "bin.h"
#include "error.h"
-void WiteBinFile (const char* Name, const StrBuf* Data)
+void WriteBinFile (const StrBuf* Data, const Collection* A,
+ const Bitmap* B attribute ((unused)))
/* Write the contents of Data to the given file in binary format */
{
unsigned Size;
+ /* Get the file name */
+ const char* Name = NeedAttrVal (A, "name", "write");
+
/* Open the output file */
FILE* F = fopen (Name, "wb");
if (F == 0) {
Error ("Error closing output file `%s': %s", Name, strerror (errno));
}
}
-
-
-