ARM VERSION 1.2 Fiche technique Page 115

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 176
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 114
ARMulator Reference
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-55
4.11.6 Hostif_ConsoleRead
This function reads a string from the ARMulator console. Reading terminates at a
newline or if the end of the buffer is reached.
Syntax
char *Hostif_ConsoleRead(const struct RDI_HostosInterface *hostif,
char *buffer, int len)
where:
hostif
is the handle for the host interface.
buffer
is a pointer to a buffer to hold the string.
len
is the maximum length of the buffer.
Return
This function returns a pointer to a buffer, or NULL on error or end of file.
The buffer contains at most
len-1
characters, terminated by a zero. If a newline is read,
it is included in the string before the zero.
4.11.7 Hostif_ConsoleWrite
This function writes a string to the ARMulator console.
Syntax
int Hostif_ConsoleWrite(const struct RDI_HostosInterface *hostif,
const char *buffer, int len)
where:
hostif
is the handle for the host interface.
buffer
is a pointer to a buffer holding a zero-terminated string.
len
is the length of the buffer.
Return
This function returns the number of characters actually written. This is
len
unless an
error occurs.
Vue de la page 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 175 176

Commentaires sur ces manuels

Pas de commentaire