*/
#define HEADBUFSIZ 128
-u_short updcrc();
+/* Forward Declarations
+ */
+int bin_open(char *binfile, int flags, struct FHeader *fh, int options);
+int bin_close(int keepflag);
+int bin_read(int fork, char *buffer, int length);
+int bin_write(int fork, char *buffer, int length);
+int bin_header_read(struct FHeader *fh, int revision);
+int bin_header_write(struct FHeader *fh);
+int test_header(void);
+u_short updcrc();
/* Both input and output routines use this struct and the
following globals; therefore this module can only be used
* so, the check for byte 74 isn't very useful.
*/
-int test_header()
+int test_header(void)
{
const char zeros[25] = "";
u_int32_t cc;
static char hexdig[] = "0123456789abcdef";
+/* Forward Declarations */
+int nad_open(char *path, int openflags, struct FHeader *fh, int options);
+int nad_header_read(struct FHeader *fh);
+int nad_header_write(struct FHeader *fh);
+int nad_read(int fork, char *forkbuf, int bufc);
+int nad_write(int fork, char *forkbuf, int bufc);
+int nad_close(int status);
+
char *mtoupath( mpath )
char *mpath;
{