/*
    (C) 1995-96 AROS - The Amiga Replacement OS
    $Id: writebyte.c,v 1.1 1997/03/27 01:11:00 ldp Exp $

    Desc: Write a big endian byte from a streamhook
    Lang: english
*/
#include <proto/dos.h>

/******************************************************************************

    NAME */
#include <stdio.h>
#include <aros/bigendianio.h>
#include <proto/alib.h>

	BOOL WriteByte (

/*  SYNOPSIS */
	struct Hook * hook,
	UBYTE	      data,
	void	    * stream)

/*  FUNCTION
	Writes one big endian 8bit value to a streamhook.

    INPUTS
	hook - Write to this streamhook
	data - Data to be written
	stream - Stream passed to streamhook

    RESULT
	The function returns TRUE on success and FALSE otherwise.
	See IoErr() for the reason in case of an error.

    NOTES
	This function writes big endian values to a file even on little
	endian machines.

    EXAMPLE

    BUGS

    SEE ALSO
	ReadByte(), ReadWord(), ReadLong(), ReadFloat(), ReadDouble(),
	ReadString(), ReadStruct(), WriteByte(), WriteWord(), WriteLong(),
	WriteFloat(), WriteDouble(), WriteString(), WriteStruct()

    HISTORY

******************************************************************************/
{
    return (CallHook (hook, stream, BEIO_WRITE, data) != EOF);
} /* WriteByte */

