Download ARM VERSION 1.2 Datasheet
Transcript
ARMulator Reference 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. ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-55