- Wait for mouse acks properly.
[cake.git] / compiler / clib / getw.c
blobd3e2d8d9e344cb9dbff5aabb32c3d7fafedd76b5
1 /*
2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 $Id$
5 SVID function getw().
6 */
8 /*****************************************************************************
10 NAME */
12 #include <stdio.h>
14 int getw(
16 /* SYNOPSIS */
17 FILE *stream)
19 /* FUNCTION
21 INPUTS
23 RESULT
25 NOTES
27 EXAMPLE
29 BUGS
31 SEE ALSO
33 INTERNALS
35 ******************************************************************************/
37 int word;
39 if (fread(&word, sizeof(word), 1, stream) > 0) return word;
40 else return EOF;