ARM VERSION 1.2 Datový list Strana 170

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 276
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 275 276

Komentáře k této Příručce

Žádné komentáře