(C) 1998 AROS - The Amiga Research OS


NAME
#include <stdio.h>
#include <aros/bigendianio.h>
#include <proto/alib.h>

BOOL ReadWord ()

SYNOPSIS
struct Hook * hook
UWORD * dataptr
void * stream

FUNCTION
Reads one big endian 16bit value from a streamhook.

INPUTS
hook
Streamhook
dataptr
Put the data here
stream
Read from this stream

RESULT
The function returns TRUE on success. On success, the value read is written into dataptr. On failure, FALSE is returned and the contents of dataptr are not changed.

EXAMPLE

SEE ALSO
ReadByte(), ReadWord(), ReadLong(), ReadFloat(), ReadDouble(), ReadString(), ReadStruct(), WriteByte(), WriteWord(), WriteLong(), WriteFloat(), WriteDouble(), WriteString(), WriteStruct()

NOTES
This function reads big endian values from a streamhook even on little endian machines.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
22.08.1997 digulla
Add some sanity checks
27.03.1997 ldp
libaros.a -> libarossupport.a