ARM VERSION 1.2 Arkusz Danych Strona 170

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 276
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 169
The C and C++ Libraries
4-80 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.10.5 _sys_read()
This function reads the contents of a file into a buffer.
Syntax
int _sys_read(FILEHANDLE fh, unsigned char *buf, unsigned len, int mode)
Implementation
The
mode
argument is abitmap describing the state of the file connected to
fh
, as for
_sys_write()
.
Returns
The return value is one of the following:
The number of characters not read (that is,
len
-
result
were read).
An error indication.
An EOF indicator. The EOF indication involves the setting of
0x80000000
in the
normal result. The target-independent code is capable of handling either:
Early EOF The last read from a file returns some characters plus an
EOF indicator.
Late EOF The last read returns only EOF.
Przeglądanie stron 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 275 276

Komentarze do niniejszej Instrukcji

Brak uwag