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 *bufferint 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.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential