2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
10 /*****************************************************************************
13 #include <proto/dos.h>
18 AROS_LHA(BPTR
, fh
, D1
),
19 AROS_LHA(APTR
, block
, D2
),
20 AROS_LHA(ULONG
, blocklen
, D3
),
21 AROS_LHA(ULONG
, number
, D4
),
24 struct DosLibrary
*, DOSBase
, 54, Dos
)
27 Read a number of blocks from a file.
30 fh - Read from this file
31 block - The data is put here
32 blocklen - This is the size of a single block
33 number - The number of blocks
36 The number of blocks read from the file or 0 on EOF.
37 This function may return less than the requested number of blocks
38 IoErr() gives additional information in case of an error.
47 Open(), FWrite(), FPutc(), Close()
51 *****************************************************************************/
65 for(read
= 0; read
< number
; read
++)
67 for(len
= blocklen
; len
--; )
78 if(read
== 0 && len
== blocklen
)